Hide comment thread-line when no replies
No replies when: - haven't fetched yet - replies blocked/muted It's being displayed as a dot in these scenarios.
This commit is contained in:
parent
b5bd36839e
commit
1e7c9ab030
1 changed files with 3 additions and 1 deletions
|
@ -48,7 +48,9 @@ export default function CommentsReplies(props: Props) {
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="comment__replies">
|
<div className="comment__replies">
|
||||||
|
{fetchedReplies.length > 0 && (
|
||||||
<Button className="comment__threadline" aria-label="Hide Replies" onClick={() => setExpanded(false)} />
|
<Button className="comment__threadline" aria-label="Hide Replies" onClick={() => setExpanded(false)} />
|
||||||
|
)}
|
||||||
|
|
||||||
<ul className="comments--replies">
|
<ul className="comments--replies">
|
||||||
{fetchedReplies.map((comment) => (
|
{fetchedReplies.map((comment) => (
|
||||||
|
|
Loading…
Reference in a new issue