fix: fix author typography styles

This commit is contained in:
Hossein Mehrabi 2023-08-30 00:05:41 +03:30
parent cf12dfd088
commit 324d0eef04
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1

View File

@ -12,15 +12,19 @@ const Author = ({
gap?: number
}) => (
<AuthorInfo key={author.name}>
<Typography variant="body3" component="p" genericFontFamily="sans-serif">
<CustomTypography
variant="body3"
component="p"
genericFontFamily="sans-serif"
>
{author.name}
</Typography>
</CustomTypography>
{email &&
author.emailAddress &&
!AuthorsConfig.hiddenEmailAddresses.includes(author.emailAddress) && (
<Typography
href={`mailto:${author.emailAddress}`}
variant="body3"
variant="label2"
component="a"
genericFontFamily="sans-serif"
>
@ -33,7 +37,10 @@ const Author = ({
const AuthorInfo = styled.div`
display: flex;
flex-direction: column;
text-transform: capitalize;
`
const CustomTypography = styled(Typography)`
text-transform: capitalized;
`
export default Author