diff --git a/src/components/catalog-row/catalog-row.tsx b/src/components/catalog-row/catalog-row.tsx index f312d14b..493bd1d8 100644 --- a/src/components/catalog-row/catalog-row.tsx +++ b/src/components/catalog-row/catalog-row.tsx @@ -188,9 +188,7 @@ const CatalogPost = ({ post }: { post: Comment }) => { }); const postContent = ( -
- {hidden ? ({t('hidden')}) : } -
+
{hidden ? ({t('hidden')}) : }
); const { imageSize, showOPComment } = useCatalogStyleStore(); diff --git a/src/components/markdown/markdown.tsx b/src/components/markdown/markdown.tsx index 72b9fdcf..8414b581 100644 --- a/src/components/markdown/markdown.tsx +++ b/src/components/markdown/markdown.tsx @@ -124,7 +124,6 @@ const blockquoteToGreentext = () => (tree: any) => { interface MarkdownProps { content: string; - spoiler?: boolean; title?: string; } diff --git a/src/components/post-desktop/post-desktop.tsx b/src/components/post-desktop/post-desktop.tsx index 56071367..9712b468 100644 --- a/src/components/post-desktop/post-desktop.tsx +++ b/src/components/post-desktop/post-desktop.tsx @@ -207,7 +207,7 @@ const PostMedia = ({ post }: PostProps) => { )} - {(hasThumbnail || (!hasThumbnail && !showThumbnail)) && ( + {(hasThumbnail || (!hasThumbnail && !showThumbnail) || spoiler) && (
@@ -217,7 +217,7 @@ const PostMedia = ({ post }: PostProps) => { }; const PostMessage = ({ post }: PostProps) => { - const { cid, content, deleted, edit, original, parentCid, postCid, reason, removed, spoiler, state, subplebbitAddress } = post || {}; + const { cid, content, deleted, edit, original, parentCid, postCid, reason, removed, state, subplebbitAddress } = post || {}; // TODO: commentAuthor is not available outside of editedComment, update when available // const banned = !!post?.commentAuthor?.banExpiresAt; const { t } = useTranslation(); @@ -252,7 +252,7 @@ const PostMessage = ({ post }: PostProps) => { {t('user_deleted_this_post')}} content={reason && `${t('reason')}: ${reason}`} /> ) : ( <> - {!showOriginal && } + {!showOriginal && } {edit && original?.content !== post?.content && ( {showOriginal && } diff --git a/src/components/post-mobile/post-mobile.tsx b/src/components/post-mobile/post-mobile.tsx index c7618ac9..4ff75356 100644 --- a/src/components/post-mobile/post-mobile.tsx +++ b/src/components/post-mobile/post-mobile.tsx @@ -152,7 +152,7 @@ const ReplyBacklinks = ({ post }: PostProps) => { const PostMessageMobile = ({ post }: PostProps) => { const { t } = useTranslation(); - const { cid, commentAuthor, content, deleted, edit, original, parentCid, postCid, reason, removed, spoiler, state, subplebbitAddress } = post || {}; + const { cid, content, deleted, edit, original, parentCid, postCid, reason, removed, state, subplebbitAddress } = post || {}; // TODO: commentAuthor is not available outside of editedComment, update when available // const banned = !!post?.commentAuthor?.banExpiresAt; const [showOriginal, setShowOriginal] = useState(false); @@ -188,7 +188,7 @@ const PostMessageMobile = ({ post }: PostProps) => { {t('user_deleted_this_post')}} content={reason && `${t('reason')}: ${reason}`} /> ) : ( <> - {!showOriginal && } + {!showOriginal && } {edit && original?.content !== post?.content && ( {showOriginal && }