display state strings from backend, but with user friendly wording

This commit is contained in:
Tom (plebeius.eth)
2025-02-20 13:29:24 +01:00
parent 7172be4960
commit 684ca25a65
42 changed files with 139 additions and 85 deletions
+3 -1
View File
@@ -447,7 +447,7 @@ const PostDesktop = ({ openReplyModal, post, roles, showAllReplies, showReplies
const linksCount = pinned ? totalLinksCount : totalLinksCount - visiblelinksCount;
const { showOmittedReplies, setShowOmittedReplies } = useShowOmittedReplies();
const stateString = useStateString(post);
const stateString = useStateString(post) || t('loading_board');
const subplebbit = useSubplebbit({ subplebbitAddress });
@@ -522,6 +522,8 @@ const PostDesktop = ({ openReplyModal, post, roles, showAllReplies, showReplies
)}
</div>
{!isInPendingPostView &&
!isDescription &&
!isRules &&
(stateString && stateString !== 'Failed' && state !== 'succeeded' ? (
<div className={styles.stateString}>
<br />