fix: spoiler text wasn't rendering on mobile

This commit is contained in:
Tom (plebeius.eth)
2024-06-08 17:09:33 +02:00
parent 39a48c9515
commit 656c31c013
@@ -117,7 +117,7 @@ const ReplyBacklinks = ({ post }: PostProps) => {
const PostMessageMobile = ({ post }: PostProps) => { const PostMessageMobile = ({ post }: PostProps) => {
const { t } = useTranslation(); const { t } = useTranslation();
const { cid, content, deleted, parentCid, postCid, reason, removed, state, subplebbitAddress } = post || {}; const { cid, content, deleted, parentCid, postCid, reason, removed, spoiler, state, subplebbitAddress } = post || {};
const params = useParams(); const params = useParams();
const location = useLocation(); const location = useLocation();
@@ -145,7 +145,7 @@ const PostMessageMobile = ({ post }: PostProps) => {
) : deleted ? ( ) : deleted ? (
<span className={styles.removedContent}>{t('user_deleted_this_post')}</span> <span className={styles.removedContent}>{t('user_deleted_this_post')}</span>
) : ( ) : (
<Markdown content={displayContent} /> <Markdown content={displayContent} spoiler={spoiler} />
)} )}
{(removed || deleted) && reason && ( {(removed || deleted) && reason && (
<span> <span>