mirror of
https://github.com/plebbit/seedit.git
synced 2026-02-15 08:21:19 -05:00
style(expando): remove alt of img as it doesn't seem to cause an eslint warning
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user