keep 'hide replies' button always
This commit is contained in:
parent
acea7d75fb
commit
0bb129e7a6
1 changed files with 7 additions and 3 deletions
|
@ -100,11 +100,15 @@ function CommentsReplies(props: Props) {
|
|||
onClick={handleCommentReply}
|
||||
icon={ICONS.REPLY}
|
||||
/>
|
||||
{!isExpanded && Boolean(numberOfComments) && (
|
||||
{Boolean(numberOfComments) && (
|
||||
<Button
|
||||
className="comment__action"
|
||||
label={__('Show %number% Replies', { number: numberOfComments })}
|
||||
onClick={() => setExpanded(true)}
|
||||
label={
|
||||
isExpanded
|
||||
? __('Hide %number% Replies', { number: numberOfComments })
|
||||
: __('Show %number% Replies', { number: numberOfComments })
|
||||
}
|
||||
onClick={() => setExpanded(!isExpanded)}
|
||||
icon={ICONS.DOWN}
|
||||
/>
|
||||
)}
|
||||
|
|
Loading…
Add table
Reference in a new issue