Fix staff profile badges
This commit is contained in:
parent
9f4891fef0
commit
090b9fa426
1 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ import ProBadge from 'gabsocial/components/pro_badge';
|
||||||
import DonorBadge from 'gabsocial/components/donor_badge';
|
import DonorBadge from 'gabsocial/components/donor_badge';
|
||||||
import InvestorBadge from 'gabsocial/components/investor_badge';
|
import InvestorBadge from 'gabsocial/components/investor_badge';
|
||||||
import { List as ImmutableList } from 'immutable';
|
import { List as ImmutableList } from 'immutable';
|
||||||
import { acctFull } from 'gabsocial/utils/accounts';
|
import { acctFull, isAdmin, isModerator } from 'gabsocial/utils/accounts';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
linkVerifiedOn: { id: 'account.link_verified_on', defaultMessage: 'Ownership of this link was checked on {date}' },
|
linkVerifiedOn: { id: 'account.link_verified_on', defaultMessage: 'Ownership of this link was checked on {date}' },
|
||||||
|
@ -77,8 +77,8 @@ class ProfileInfoPanel extends ImmutablePureComponent {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='profile-info-panel-content__badges'>
|
<div className='profile-info-panel-content__badges'>
|
||||||
{account.get('is_admin') && <Badge slug='admin' title='Admin' />}
|
{isAdmin(account) && <Badge slug='admin' title='Admin' />}
|
||||||
{account.get('is_moderator') && <Badge slug='moderator' title='Moderator' />}
|
{isModerator(account) && <Badge slug='moderator' title='Moderator' />}
|
||||||
{account.get('is_pro') && <ProBadge />}
|
{account.get('is_pro') && <ProBadge />}
|
||||||
{account.get('is_donor') && <DonorBadge />}
|
{account.get('is_donor') && <DonorBadge />}
|
||||||
{account.get('is_investor') && <InvestorBadge />}
|
{account.get('is_investor') && <InvestorBadge />}
|
||||||
|
|
Loading…
Reference in a new issue