Fix state label

This commit is contained in:
plebeius.eth
2023-06-07 22:08:09 +02:00
parent 8ca97ba21a
commit 81bc4ffb55
+8 -2
View File
@@ -9,14 +9,20 @@ const StateLabel = ({ commentCid, className }) => {
return ( return (
comment.state === "succeeded" ? null : ( comment.state === "succeeded" ? null : (
<span className={className}> comment.state === "initializing" ? null : (
<span className="ttl">
<> <>
<br /> <br />
{stateString || comment.state.charAt(0).toUpperCase() + comment.state.slice(1)} (
<span className={className}>
{stateString}
</span>
)
</> </>
</span> </span>
) )
) )
)
}; };
export default StateLabel; export default StateLabel;