style(expando): remove alt of img as it doesn't seem to cause an eslint warning

This commit is contained in:
plebeius.eth
2023-10-18 17:06:21 +02:00
parent 77c5a82486
commit 7d0136152a

View File

@@ -18,9 +18,9 @@ const Expando: FC<ExpandoProps> = ({ commentCid, expanded }) => {
// prettier-ignore
const mediaComponents: { [key in CommentMediaInfo['type']]?: JSX.Element | null } = {
'image': <img src={commentMediaInfo?.url} alt='thumbnail' onError={(e) => { e.currentTarget.alt = ''; }} />,
'image': <img src={commentMediaInfo?.url} alt='' />,
'video': expanded ? <video src={commentMediaInfo?.url} controls /> : null,
'webpage': <img src={commentMediaInfo?.thumbnail} alt='thumbnail' onError={(e) => { e.currentTarget.alt = ''; }} />,
'webpage': <img src={commentMediaInfo?.thumbnail} alt='' />,
'audio': expanded ? <audio src={commentMediaInfo?.url} controls /> : null,
'iframe': expanded ? <Embed url={commentMediaInfo?.url} /> : null,
};