fix: 906 edit avatar style (#923)

* fix: 906 edit avatar style

* fix: 906 add avatar size enum and mapping for font and height

* fix: 906 remove unused vars
This commit is contained in:
310387
2023-07-28 02:37:12 +03:00
committed by GitHub
parent f4b8a3decb
commit 8c659b8b37
10 changed files with 59 additions and 22 deletions

View File

@ -1,5 +1,4 @@
import { Tooltip } from 'react-tooltip';
import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { v4 as uuidV4 } from 'uuid';
@ -70,16 +69,16 @@ export function ShowPageSummaryCard({
const beautifiedCreatedAt =
date !== '' ? beautifyPastDateRelativeToNow(date) : '';
const exactCreatedAt = date !== '' ? beautifyExactDate(date) : '';
const theme = useTheme();
const dateElementId = `date-id-${uuidV4()}`;
return (
<StyledShowPageSummaryCard>
<Avatar
avatarUrl={logoOrAvatar}
size={theme.icon.size.xl}
size="xl"
colorId={id}
placeholder={title}
type="rounded"
/>
<StyledInfoContainer>
<StyledTitle>