Purge unused Badge components
This commit is contained in:
parent
82c07f84b4
commit
75ab969051
5 changed files with 2 additions and 38 deletions
|
@ -1,7 +0,0 @@
|
|||
import React from 'react';
|
||||
|
||||
const DonorBadge = () => (
|
||||
<span className='badge badge--donor'>Donor</span>
|
||||
);
|
||||
|
||||
export default DonorBadge;
|
|
@ -1,7 +0,0 @@
|
|||
import React from 'react';
|
||||
|
||||
const InvestorBadge = () => (
|
||||
<span className='badge badge--investor'>Investor</span>
|
||||
);
|
||||
|
||||
export default InvestorBadge;
|
|
@ -1,7 +0,0 @@
|
|||
import React from 'react';
|
||||
|
||||
const ProBadge = () => (
|
||||
<span className='badge badge--pro'>Pro</span>
|
||||
);
|
||||
|
||||
export default ProBadge;
|
|
@ -9,9 +9,6 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
|
|||
import Icon from 'soapbox/components/icon';
|
||||
import VerificationBadge from 'soapbox/components/verification_badge';
|
||||
import Badge from 'soapbox/components/badge';
|
||||
import ProBadge from 'soapbox/components/pro_badge';
|
||||
import DonorBadge from 'soapbox/components/donor_badge';
|
||||
import InvestorBadge from 'soapbox/components/investor_badge';
|
||||
import { List as ImmutableList } from 'immutable';
|
||||
import { acctFull, isAdmin, isModerator } from 'soapbox/utils/accounts';
|
||||
|
||||
|
@ -79,9 +76,7 @@ class ProfileInfoPanel extends ImmutablePureComponent {
|
|||
<div className='profile-info-panel-content__badges'>
|
||||
{isAdmin(account) && <Badge slug='admin' title='Admin' />}
|
||||
{isModerator(account) && <Badge slug='moderator' title='Moderator' />}
|
||||
{account.get('is_pro') && <ProBadge />}
|
||||
{account.get('is_donor') && <DonorBadge />}
|
||||
{account.get('is_investor') && <InvestorBadge />}
|
||||
{account.getIn(['patron', 'is_patron']) && <Badge slug='patron' title='Patron' />}
|
||||
{account.get('acct').includes('@') || <div className='profile-info-panel-content__badges__join-date'>
|
||||
<Icon id='calendar' />
|
||||
<FormattedMessage
|
||||
|
|
|
@ -8,21 +8,11 @@
|
|||
border-radius: 2px;
|
||||
margin: 0 5px 5px 0;
|
||||
|
||||
&--pro {
|
||||
&--patron {
|
||||
background-color: #8a2be2;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
&--investor {
|
||||
background-color: #ffd700;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
&--donor {
|
||||
background-color: #90ee90;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
&--admin {
|
||||
background-color: #000;
|
||||
color: #fff;
|
||||
|
|
Loading…
Reference in a new issue