Added user badges and "member since"
added ProBadge, InvestorBadge, DonorBadge components, css removed "PRO" from appending in display_name fixes: #50
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import React from 'react';
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||
import PropTypes from 'prop-types';
|
||||
import DisplayNameBadge from './display_name_badge';
|
||||
import VerificationBadge from './verification_badge';
|
||||
|
||||
export default class DisplayName extends React.PureComponent {
|
||||
@@ -39,7 +38,6 @@ export default class DisplayName extends React.PureComponent {
|
||||
{displayName}
|
||||
{account.get('is_verified') && <VerificationBadge />}
|
||||
{suffix}
|
||||
{account.get('is_pro') && <DisplayNameBadge label="PRO" />}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
7
app/javascript/gabsocial/components/donor_badge.js
Normal file
7
app/javascript/gabsocial/components/donor_badge.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import React from 'react';
|
||||
|
||||
const DonorBadge = () => (
|
||||
<span className='badge badge--donor'>Donor</span>
|
||||
);
|
||||
|
||||
export default DonorBadge;
|
||||
7
app/javascript/gabsocial/components/investor_badge.js
Normal file
7
app/javascript/gabsocial/components/investor_badge.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import React from 'react';
|
||||
|
||||
const InvestorBadge = () => (
|
||||
<span className='badge badge--investor'>Investor</span>
|
||||
);
|
||||
|
||||
export default InvestorBadge;
|
||||
7
app/javascript/gabsocial/components/pro_badge.js
Normal file
7
app/javascript/gabsocial/components/pro_badge.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import React from 'react';
|
||||
|
||||
const ProBadge = () => (
|
||||
<span className='badge badge--pro'>Pro</span>
|
||||
);
|
||||
|
||||
export default ProBadge;
|
||||
Reference in New Issue
Block a user