feat: adds by label next to author names

This commit is contained in:
jongomez 2023-10-20 13:45:14 +01:00 committed by Jon
parent bb0ddbc589
commit 758e7d7de9
1 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,4 @@
import { Typography } from '@acid-info/lsd-react'
import styled from '@emotion/styled'
import { LPE } from '../../types/lpe.types'
import { DotIcon } from '../Icons/DotIcon'
@ -24,6 +25,9 @@ const Authors: React.FC<AuthorsProps> = ({
}) => {
return authors?.length > 0 ? (
<AuthorsContainer gap={gap} flexDirection={flexDirection} {...props}>
<Typography variant="label2" style={{ marginRight: `${3 - gap}px` }}>
by
</Typography>
{authors.map((author, index) => (
<AuthorContainer gap={gap} key={author.name}>
<Author author={author} email={email} />