diff --git a/app/soapbox/features/ui/components/profile_info_panel.js b/app/soapbox/features/ui/components/profile_info_panel.js index c32bfc42e..4b5559bfd 100644 --- a/app/soapbox/features/ui/components/profile_info_panel.js +++ b/app/soapbox/features/ui/components/profile_info_panel.js @@ -46,6 +46,18 @@ class ProfileInfoPanel extends ImmutablePureComponent { displayFqn: PropTypes.bool, }; + getStaffBadge = () => { + const { account } = this.props; + + if (isAdmin(account)) { + return ; + } else if (isModerator(account)) { + return ; + } else { + return null; + } + } + render() { const { account, displayFqn, intl, identity_proofs, username } = this.props; @@ -86,8 +98,7 @@ class ProfileInfoPanel extends ImmutablePureComponent {
- {isAdmin(account) && } - {isModerator(account) && } + {this.getStaffBadge()} {account.getIn(['patron', 'is_patron']) && } {account.get('acct').includes('@') ||