diff --git a/src/components/post/post.module.css b/src/components/post/post.module.css index 60adcd93..84459b42 100644 --- a/src/components/post/post.module.css +++ b/src/components/post/post.module.css @@ -77,7 +77,6 @@ } .postDesktop .postNumLink a:hover, .postDesktop .postNumLink span:hover, .replyDesktop .postNumLink a:hover, .replyDesktop .postNumLink span:hover { - cursor: pointer; color: var(--button-desktop-text-color-hover); } diff --git a/src/components/post/post.tsx b/src/components/post/post.tsx index 0cdaf091..fa52a35b 100644 --- a/src/components/post/post.tsx +++ b/src/components/post/post.tsx @@ -142,7 +142,7 @@ const PostDesktop = ({ openReplyModal, post, roles, showAllReplies }: PostProps) c/ {!cid ? ( - {state === 'failed' ? 'Failed' : 'Pending'} + {state === 'failed' || stateString === 'Failed' ? 'Failed' : 'Pending'} ) : ( openReplyModal && openReplyModal(cid)}> {shortCid} @@ -187,7 +187,7 @@ const PostDesktop = ({ openReplyModal, post, roles, showAllReplies }: PostProps) }} /> )} - {!cid && state === 'pending' && ( + {!cid && state === 'pending' && stateString !== 'Failed' && ( <>
{loadingString} @@ -195,7 +195,7 @@ const PostDesktop = ({ openReplyModal, post, roles, showAllReplies }: PostProps) )} )} - {!isDescription && !isRules && (replies.length > 5 || (pinned && replies.length > 0)) && !isInPostPage && ( + {!isDescription && !isRules && !isPendingPostPage && (replies.length > 5 || (pinned && replies.length > 0)) && !isInPostPage && ( @@ -274,7 +274,7 @@ const ReplyDesktop = ({ reply, roles, openReplyModal }: PostProps) => { c/ {!cid ? ( - {state === 'failed' ? 'Failed' : 'Pending'} + {state === 'failed' || stateString === 'Failed' ? 'Failed' : 'Pending'} ) : ( openReplyModal && openReplyModal(cid)}> {shortCid} @@ -350,7 +350,7 @@ const ReplyDesktop = ({ reply, roles, openReplyModal }: PostProps) => { )} - {!cid && state === 'pending' && ( + {!cid && state === 'pending' && stateString !== 'Failed' && ( <>
{loadingString} @@ -439,7 +439,7 @@ const PostMobile = ({ openReplyModal, post, roles, showAllReplies }: PostProps) c/ {!cid ? ( - {state === 'failed' ? 'Failed' : 'Pending'} + {state === 'failed' || stateString === 'Failed' ? 'Failed' : 'Pending'} ) : ( openReplyModal && openReplyModal(cid)}> {shortCid} @@ -469,7 +469,7 @@ const PostMobile = ({ openReplyModal, post, roles, showAllReplies }: PostProps) }} /> )} - {!cid && state === 'pending' && ( + {!cid && state === 'pending' && stateString !== 'Failed' && ( <>
{loadingString} @@ -478,7 +478,7 @@ const PostMobile = ({ openReplyModal, post, roles, showAllReplies }: PostProps) )} - {!isInPostPage && ( + {!isInPostPage && !isPendingPostPage && (
{replyCount > 0 && `${replyCount} Replies`} @@ -553,7 +553,7 @@ const ReplyMobile = ({ reply, roles, openReplyModal }: PostProps) => { {!cid ? ( - {state === 'failed' ? 'Failed' : 'Pending'} + {state === 'failed' || stateString === 'Failed' ? 'Failed' : 'Pending'} ) : ( openReplyModal && openReplyModal(cid)}> {shortCid} @@ -582,7 +582,7 @@ const ReplyMobile = ({ reply, roles, openReplyModal }: PostProps) => { )} - {!cid && state === 'pending' && ( + {!cid && state === 'pending' && stateString !== 'Failed' && ( <>
{loadingString}