Fix context menu and favorites (#2564)

This commit is contained in:
Lucas Bordeau
2023-11-17 16:24:43 +01:00
committed by GitHub
parent becd7c2ece
commit a6d8cdb116
12 changed files with 197 additions and 35 deletions

View File

@ -13,7 +13,7 @@ export type AvatarSize = 'xl' | 'lg' | 'md' | 'sm' | 'xs';
export type AvatarProps = {
avatarUrl: string | null | undefined;
size?: AvatarSize;
placeholder: string;
placeholder: string | undefined;
colorId?: string;
type?: AvatarType;
onClick?: () => void;
@ -118,11 +118,11 @@ export const Avatar = ({
placeholder={placeholder}
size={size}
type={type}
colorId={colorId}
colorId={colorId ?? ''}
onClick={onClick}
>
{(noAvatarUrl || isInvalidAvatarUrl) &&
placeholder[0]?.toLocaleUpperCase()}
placeholder?.[0]?.toLocaleUpperCase()}
</StyledAvatar>
);
};