diff --git a/app/soapbox/features/ui/components/profile_info_panel.js b/app/soapbox/features/ui/components/profile_info_panel.js
index 4ca0ef388..dee534127 100644
--- a/app/soapbox/features/ui/components/profile_info_panel.js
+++ b/app/soapbox/features/ui/components/profile_info_panel.js
@@ -51,14 +51,32 @@ class ProfileInfoPanel extends ImmutablePureComponent {
const { account } = this.props;
if (isAdmin(account)) {
- return ;
+ return ;
} else if (isModerator(account)) {
- return ;
+ return ;
} else {
return null;
}
}
+ getBadges = () => {
+ const { account } = this.props;
+ const staffBadge = this.getStaffBadge();
+ const isPatron = account.getIn(['patron', 'is_patron']);
+
+ const badges = [];
+
+ if (staffBadge) {
+ badges.push(staffBadge);
+ }
+
+ if (isPatron) {
+ badges.push();
+ }
+
+ return badges;
+ }
+
render() {
const { account, displayFqn, intl, identity_proofs, username } = this.props;
@@ -84,6 +102,7 @@ class ProfileInfoPanel extends ImmutablePureComponent {
const displayNameHtml = deactivated ? { __html: intl.formatMessage(messages.deactivated) } : { __html: account.get('display_name_html') };
const memberSinceDate = intl.formatDate(account.get('created_at'), { month: 'long', year: 'numeric' });
const verified = account.getIn(['pleroma', 'tags'], ImmutableList()).includes('verified');
+ const badges = this.getBadges();
return (
@@ -98,10 +117,11 @@ class ProfileInfoPanel extends ImmutablePureComponent {
-
- {this.getStaffBadge()}
- {account.getIn(['patron', 'is_patron']) && }
-
+ {badges.length > 0 && (
+
+ {badges}
+
+ )}