added state message formatting

This commit is contained in:
plebbitor
2023-04-23 11:46:14 +02:00
parent 2760171d8b
commit 8e9708a442
5 changed files with 23 additions and 9 deletions
+3 -2
View File
@@ -13,6 +13,7 @@ import PostLoader from '../PostLoader';
import ReplyModal from '../ReplyModal';
import SettingsModal from '../SettingsModal';
import findShortParentCid from '../../utils/findShortParentCid';
import formatState from '../../utils/formatState';
import getCommentMediaInfo from '../../utils/getCommentMediaInfo';
import getDate from '../../utils/getDate';
import handleAddressClick from '../../utils/handleAddressClick';
@@ -387,10 +388,10 @@ const Thread = () => {
<span className="reply-stat">No replies yet</span>
)
) : (
<span className="reply-stat">Fetching IPNS...</span>
<span className="reply-stat">{formatState(comment.state)}</span>
)
) : (
<span className="reply-stat">Fetching IPNS...</span>
<span className="reply-stat">{formatState(comment.state)}</span>
)}
<hr />
</TopBar>