Introduce accent for chips (#911)

* Introduce accent for chips

* Add top bar on Mobile on Settings pages

* Various fixes

* Fix according to peer review
This commit is contained in:
Charles Bochet
2023-07-24 16:49:33 -07:00
committed by GitHub
parent b2f4108d89
commit d6afbe8e8e
23 changed files with 166 additions and 279 deletions

View File

@ -1,25 +1,26 @@
import { EntityChip } from '@/ui/chip/components/EntityChip';
import { EntityChip, EntityChipVariant } from '@/ui/chip/components/EntityChip';
export type PersonChipPropsType = {
id: string;
name: string;
pictureUrl?: string;
clickable?: boolean;
variant?: EntityChipVariant;
};
export function PersonChip({
id,
name,
pictureUrl,
clickable = true,
variant,
}: PersonChipPropsType) {
return (
<EntityChip
entityId={id}
linkToEntity={clickable ? `/person/${id}` : undefined}
linkToEntity={`/person/${id}`}
name={name}
avatarType="rounded"
pictureUrl={pictureUrl}
variant={variant}
/>
);
}