ActionButton: remove minus icon from Unfollow button

This commit is contained in:
Alex Gleason 2021-10-13 12:12:21 -05:00
parent ecdef1d95b
commit 59835087b5
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -109,8 +109,14 @@ class ActionButton extends ImmutablePureComponent {
})}
onClick={this.handleFollow}
>
{intl.formatMessage(account.getIn(['relationship', 'following']) ? messages.unfollow : messages.follow)}
<Icon src={account.getIn(['relationship', 'following']) ? require('@tabler/icons/icons/minus.svg') : require('@tabler/icons/icons/plus.svg')} />
{account.getIn(['relationship', 'following']) ? (
intl.formatMessage(messages.unfollow)
) : (
<>
{intl.formatMessage(messages.follow)}
<Icon src={require('@tabler/icons/icons/plus.svg')} />
</>
)}
</Button>);
} else if (account.getIn(['relationship', 'blocking'])) {
// Unblock