Improve tests (#871)

This commit is contained in:
Charles Bochet
2023-07-24 00:57:56 -07:00
committed by GitHub
parent 2b885f2496
commit 07180af8c0
53 changed files with 432 additions and 251 deletions

View File

@ -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}
/>
);
}