Add icon to "Show/Hide Reply"

This commit is contained in:
infinite-persistence 2021-08-23 15:19:23 +08:00
parent 8010b2680a
commit 7da1d8cdf7
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -373,13 +373,19 @@ function Comment(props: Props) {
setPage(1);
}
}}
icon={ICONS.DOWN}
/>
</div>
)}
{numDirectReplies > 0 && showReplies && (
<div className="comment__actions">
<Button label={__('Hide replies')} button="link" onClick={() => setShowReplies(false)} />
<Button
label={__('Hide replies')}
button="link"
onClick={() => setShowReplies(false)}
icon={ICONS.UP}
/>
</div>
)}