Improve tests (#871)
This commit is contained in:
@ -3,24 +3,23 @@ import { EntityChip } from '@/ui/chip/components/EntityChip';
|
||||
export type PersonChipPropsType = {
|
||||
id: string;
|
||||
name: string;
|
||||
picture?: string;
|
||||
pictureUrl?: string;
|
||||
clickable?: boolean;
|
||||
};
|
||||
|
||||
export function PersonChip({
|
||||
id,
|
||||
name,
|
||||
picture,
|
||||
clickable,
|
||||
pictureUrl,
|
||||
clickable = true,
|
||||
}: PersonChipPropsType) {
|
||||
return (
|
||||
<EntityChip
|
||||
entityId={id}
|
||||
linkToEntity={`/person/${id}`}
|
||||
linkToEntity={clickable ? `/person/${id}` : undefined}
|
||||
name={name}
|
||||
avatarType="rounded"
|
||||
clickable={clickable}
|
||||
picture={picture}
|
||||
pictureUrl={pictureUrl}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user