diff --git a/src/components/AuthorInfo.jsx b/src/components/AuthorInfo.jsx index 7d50be5..4491047 100644 --- a/src/components/AuthorInfo.jsx +++ b/src/components/AuthorInfo.jsx @@ -7,7 +7,7 @@ import style from './AuthorInfo.module.scss'; const cx = classnames.bind(style); -const AuthorInfo = ({author: {fullname, refs = []}}) => { +const AuthorInfo = ({author: {fullname, refs = [], role}}) => { const [info, setInfo] = useState(null); const wikidataRef = refs.find((r) => r.type === 'wikidata'); @@ -64,8 +64,10 @@ const AuthorInfo = ({author: {fullname, refs = []}}) => { const {name, imageUrl, commonsPage, birth = [], death = []} = info || {}; + const isTranslator = role === 'translator'; + return ( -