Fix not to show follow button in global suggestion (#16045)
* Fix not to show follow button in global suggestion * Fix style
This commit is contained in:
parent
9bb3341849
commit
baed52c2a7
2 changed files with 7 additions and 5 deletions
|
@ -78,8 +78,10 @@ class Account extends ImmutablePureComponent {
|
|||
|
||||
let buttons;
|
||||
|
||||
if (onActionClick && actionIcon) {
|
||||
buttons = <IconButton icon={actionIcon} title={actionTitle} onClick={this.handleAction} />;
|
||||
if (actionIcon) {
|
||||
if (onActionClick) {
|
||||
buttons = <IconButton icon={actionIcon} title={actionTitle} onClick={this.handleAction} />;
|
||||
}
|
||||
} else if (account.get('id') !== me && account.get('relationship', null) !== null) {
|
||||
const following = account.getIn(['relationship', 'following']);
|
||||
const requested = account.getIn(['relationship', 'requested']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue