diff --git a/src/components/comment-media/comment-media.tsx b/src/components/comment-media/comment-media.tsx index 5cf09cbd..989da6b4 100644 --- a/src/components/comment-media/comment-media.tsx +++ b/src/components/comment-media/comment-media.tsx @@ -11,6 +11,7 @@ import Embed, { canEmbed } from '../embed'; interface MediaProps { commentMediaInfo?: CommentMediaInfo; deleted?: boolean; + disableToggle?: boolean; displayHeight?: string; displayWidth?: string; isFloatingEmbed?: boolean; @@ -83,7 +84,7 @@ const Thumbnail = ({ commentMediaInfo, deleted, displayHeight, displayWidth, isF ); }; -const Media = ({ commentMediaInfo, isReply, setShowThumbnail }: MediaProps) => { +const Media = ({ commentMediaInfo, disableToggle, isReply, setShowThumbnail }: MediaProps) => { const { t } = useTranslation(); const { thumbnail, type, url } = commentMediaInfo || {}; const isMobile = useIsMobile(); @@ -98,11 +99,11 @@ const Media = ({ commentMediaInfo, isReply, setShowThumbnail }: MediaProps) => { {type === 'iframe' && url ? ( ) : type === 'gif' ? ( - setShowThumbnail(true)} /> + setShowThumbnail(true)} /> ) : type === 'video' ? (