mirror of
https://github.com/acid-info/logos-press-engine.git
synced 2025-02-23 22:58: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
|
gap?: number
|
||||||
}) => (
|
}) => (
|
||||||
<AuthorInfo key={author.name}>
|
<AuthorInfo key={author.name}>
|
||||||
<Typography variant="body3" component="p" genericFontFamily="sans-serif">
|
<CustomTypography
|
||||||
|
variant="body3"
|
||||||
|
component="p"
|
||||||
|
genericFontFamily="sans-serif"
|
||||||
|
>
|
||||||
{author.name}
|
{author.name}
|
||||||
</Typography>
|
</CustomTypography>
|
||||||
{email &&
|
{email &&
|
||||||
author.emailAddress &&
|
author.emailAddress &&
|
||||||
!AuthorsConfig.hiddenEmailAddresses.includes(author.emailAddress) && (
|
!AuthorsConfig.hiddenEmailAddresses.includes(author.emailAddress) && (
|
||||||
<Typography
|
<Typography
|
||||||
href={`mailto:${author.emailAddress}`}
|
href={`mailto:${author.emailAddress}`}
|
||||||
variant="body3"
|
variant="label2"
|
||||||
component="a"
|
component="a"
|
||||||
genericFontFamily="sans-serif"
|
genericFontFamily="sans-serif"
|
||||||
>
|
>
|
||||||
@ -33,7 +37,10 @@ const Author = ({
|
|||||||
const AuthorInfo = styled.div`
|
const AuthorInfo = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
text-transform: capitalize;
|
`
|
||||||
|
|
||||||
|
const CustomTypography = styled(Typography)`
|
||||||
|
text-transform: capitalized;
|
||||||
`
|
`
|
||||||
|
|
||||||
export default Author
|
export default Author
|
||||||
|
Loading…
x
Reference in New Issue
Block a user