Added bot/automated-feed badge to ProfileInfoPanel
• Added: - bot/automated-feed badge to ProfileInfoPanel
This commit is contained in:
parent
c42df699e9
commit
82778ddad0
@ -35,10 +35,11 @@ class ProfileInfoPanel extends ImmutablePureComponent {
|
|||||||
const content = { __html: account.get('note_emojified') }
|
const content = { __html: account.get('note_emojified') }
|
||||||
const memberSinceDate = intl.formatDate(account.get('created_at'), { month: 'long', year: 'numeric' })
|
const memberSinceDate = intl.formatDate(account.get('created_at'), { month: 'long', year: 'numeric' })
|
||||||
const hasNote = !!content ? (account.get('note').length > 0 && account.get('note') !== '<p></p>') : false
|
const hasNote = !!content ? (account.get('note').length > 0 && account.get('note') !== '<p></p>') : false
|
||||||
|
const isBot = !!account.get('bot')
|
||||||
const isPro = account.get('is_pro')
|
const isPro = account.get('is_pro')
|
||||||
const isDonor = account.get('is_donor')
|
const isDonor = account.get('is_donor')
|
||||||
const isInvestor = account.get('is_investor')
|
const isInvestor = account.get('is_investor')
|
||||||
const hasBadges = isPro || isDonor || isInvestor
|
const hasBadges = isPro || isDonor || isInvestor || isBot
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Wrapper title={intl.formatMessage(messages.title)}>
|
<Wrapper title={intl.formatMessage(messages.title)}>
|
||||||
@ -71,6 +72,12 @@ class ProfileInfoPanel extends ImmutablePureComponent {
|
|||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<Divider isSmall />
|
<Divider isSmall />
|
||||||
<div className={[_s.d, _s.flexRow, _s.aiCenter].join(' ')}>
|
<div className={[_s.d, _s.flexRow, _s.aiCenter].join(' ')}>
|
||||||
|
{
|
||||||
|
isBot &&
|
||||||
|
<div className={[_s.mr5, _s.radiusSmall, _s.bgTertiary, _s.py2, _s.px5].join(' ')}>
|
||||||
|
<Text weight='bold' size='small' className={_s.cSecondary} isBadge>FEED</Text>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
{
|
{
|
||||||
isPro &&
|
isPro &&
|
||||||
<div className={[_s.mr5, _s.radiusSmall, _s.bgPro, _s.py2, _s.px5].join(' ')}>
|
<div className={[_s.mr5, _s.radiusSmall, _s.bgPro, _s.py2, _s.px5].join(' ')}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user