feat: add Show Page Emails preview (#2964)

* feat: add Show Page Emails preview

Closes #2928

* refactor: review - rename StyledContainer to StyledCardContent
This commit is contained in:
Thaïs
2023-12-15 17:03:34 +01:00
committed by GitHub
parent 1e33959733
commit 9f6d476351
6 changed files with 145 additions and 1 deletions

View File

@ -12,6 +12,7 @@ export type AvatarSize = 'xl' | 'lg' | 'md' | 'sm' | 'xs';
export type AvatarProps = {
avatarUrl: string | null | undefined;
className?: string;
size?: AvatarSize;
placeholder: string | undefined;
colorId?: string;
@ -90,6 +91,7 @@ const StyledAvatar = styled.div<AvatarProps & { colorId: string }>`
export const Avatar = ({
avatarUrl,
className,
size = 'md',
placeholder,
colorId = placeholder,
@ -113,6 +115,7 @@ export const Avatar = ({
return (
<StyledAvatar
className={className}
avatarUrl={getImageAbsoluteURIOrBase64(avatarUrl)}
placeholder={placeholder}
size={size}