diff --git a/src/components/expando/expando.tsx b/src/components/expando/expando.tsx index caf5fe6b..f86ceee0 100644 --- a/src/components/expando/expando.tsx +++ b/src/components/expando/expando.tsx @@ -4,7 +4,6 @@ import utils from '../../lib/utils'; import { Link } from 'react-router-dom'; import styles from './expando.module.css'; import Embed from '../embed'; -import { CommentMediaInfo } from '../../lib/utils'; interface ExpandoProps { commentCid: string; @@ -16,21 +15,26 @@ const Expando: FC = ({ commentCid, expanded }) => { const { cid, content, link, subplebbitAddress } = comment || {}; const commentMediaInfo = utils.getCommentMediaInfoMemoized(comment); - // prettier-ignore - const mediaComponents: { [key in CommentMediaInfo['type']]?: JSX.Element | null } = { - 'image': , - 'video': expanded ?