ProfileInfoPanel: fix join date
This commit is contained in:
parent
b98cc6900f
commit
504962b47b
|
@ -10,7 +10,7 @@ import Icon from 'soapbox/components/icon';
|
|||
import VerificationBadge from 'soapbox/components/verification_badge';
|
||||
import Badge from 'soapbox/components/badge';
|
||||
import { List as ImmutableList } from 'immutable';
|
||||
import { getAcct, isAdmin, isModerator } from 'soapbox/utils/accounts';
|
||||
import { getAcct, isAdmin, isModerator, isLocal } from 'soapbox/utils/accounts';
|
||||
import { displayFqn } from 'soapbox/utils/state';
|
||||
import classNames from 'classnames';
|
||||
import CryptoAddress from 'soapbox/features/crypto_donate/components/crypto_address';
|
||||
|
@ -100,7 +100,9 @@ class ProfileInfoPanel extends ImmutablePureComponent {
|
|||
<div className='profile-info-panel-content__badges'>
|
||||
{this.getStaffBadge()}
|
||||
{account.getIn(['patron', 'is_patron']) && <Badge slug='patron' title='Patron' />}
|
||||
{account.get('acct').includes('@') || <div className='profile-info-panel-content__badges__join-date'>
|
||||
</div>
|
||||
|
||||
{isLocal(account) && <div className='profile-info-panel-content__badges__join-date'>
|
||||
<Icon id='calendar' />
|
||||
<FormattedMessage
|
||||
id='account.member_since' defaultMessage='Member since {date}' values={{
|
||||
|
@ -108,7 +110,6 @@ class ProfileInfoPanel extends ImmutablePureComponent {
|
|||
}}
|
||||
/>
|
||||
</div>}
|
||||
</div>
|
||||
|
||||
<div className='profile-info-panel-content__deactivated'>
|
||||
<FormattedMessage
|
||||
|
|
Loading…
Reference in New Issue