ActionButton: remove minus icon from Unfollow button
This commit is contained in:
parent
ecdef1d95b
commit
59835087b5
1 changed files with 8 additions and 2 deletions
|
@ -109,8 +109,14 @@ class ActionButton extends ImmutablePureComponent {
|
||||||
})}
|
})}
|
||||||
onClick={this.handleFollow}
|
onClick={this.handleFollow}
|
||||||
>
|
>
|
||||||
{intl.formatMessage(account.getIn(['relationship', 'following']) ? messages.unfollow : messages.follow)}
|
{account.getIn(['relationship', 'following']) ? (
|
||||||
<Icon src={account.getIn(['relationship', 'following']) ? require('@tabler/icons/icons/minus.svg') : require('@tabler/icons/icons/plus.svg')} />
|
intl.formatMessage(messages.unfollow)
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
|
{intl.formatMessage(messages.follow)}
|
||||||
|
<Icon src={require('@tabler/icons/icons/plus.svg')} />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</Button>);
|
</Button>);
|
||||||
} else if (account.getIn(['relationship', 'blocking'])) {
|
} else if (account.getIn(['relationship', 'blocking'])) {
|
||||||
// Unblock
|
// Unblock
|
||||||
|
|
Loading…
Reference in a new issue