mirror of
https://github.com/acid-info/logos-press-engine.git
synced 2025-02-23 14:48:08 +00:00
fix: fix author typography styles
This commit is contained in:
parent
cf12dfd088
commit
324d0eef04
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user