Rename .follow-button to .button--follow

The other classname is listed on Fanboy's Annoyances List
profile-avatar-switcher
Alex Gleason 2021-10-06 18:48:13 -05:00
rodzic 5807b8f823
commit cf19366626
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -104,7 +104,7 @@ class ActionButton extends ImmutablePureComponent {
// Follow & Unfollow // Follow & Unfollow
return (<Button return (<Button
disabled={account.getIn(['relationship', 'blocked_by'])} disabled={account.getIn(['relationship', 'blocked_by'])}
className={classNames('follow-button', { className={classNames('button--follow', {
'button--destructive': account.getIn(['relationship', 'following']), 'button--destructive': account.getIn(['relationship', 'following']),
})} })}
onClick={this.handleFollow} onClick={this.handleFollow}

Wyświetl plik

@ -143,7 +143,7 @@ a.button {
} }
} }
.follow-button { .button--follow {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;