@ -176,7 +176,7 @@ export const useCommandMenuCommands = () => {
|
|||||||
|
|
||||||
const peopleCommands = useMemo(
|
const peopleCommands = useMemo(
|
||||||
() =>
|
() =>
|
||||||
people?.map(({ id, name: { firstName, lastName } }) => ({
|
people?.map(({ id, name: { firstName, lastName }, avatarUrl }) => ({
|
||||||
id,
|
id,
|
||||||
label: `${firstName} ${lastName}`,
|
label: `${firstName} ${lastName}`,
|
||||||
to: `object/person/${id}`,
|
to: `object/person/${id}`,
|
||||||
@ -184,7 +184,7 @@ export const useCommandMenuCommands = () => {
|
|||||||
Icon: () => (
|
Icon: () => (
|
||||||
<Avatar
|
<Avatar
|
||||||
type="rounded"
|
type="rounded"
|
||||||
avatarUrl={null}
|
avatarUrl={avatarUrl}
|
||||||
placeholderColorSeed={id}
|
placeholderColorSeed={id}
|
||||||
placeholder={`${firstName} ${lastName}`}
|
placeholder={`${firstName} ${lastName}`}
|
||||||
/>
|
/>
|
||||||
@ -283,7 +283,7 @@ export const useCommandMenuCommands = () => {
|
|||||||
Icon: () => (
|
Icon: () => (
|
||||||
<Avatar
|
<Avatar
|
||||||
type="rounded"
|
type="rounded"
|
||||||
avatarUrl={null}
|
avatarUrl={objectRecord.record.avatarUrl}
|
||||||
placeholderColorSeed={objectRecord.record.id}
|
placeholderColorSeed={objectRecord.record.id}
|
||||||
placeholder={objectRecord.recordIdentifier.name ?? ''}
|
placeholder={objectRecord.recordIdentifier.name ?? ''}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user