Profile redesign: Move and rearrange number fields (#38535)
This commit is contained in:
parent
caf7c21453
commit
f7c00d8d4e
@ -169,6 +169,8 @@ export const AccountHeader: React.FC<{
|
|||||||
|
|
||||||
<AccountBadges accountId={accountId} />
|
<AccountBadges accountId={accountId} />
|
||||||
|
|
||||||
|
<AccountNumberFields accountId={accountId} />
|
||||||
|
|
||||||
{!isMe && !suspendedOrHidden && (
|
{!isMe && !suspendedOrHidden && (
|
||||||
<FamiliarFollowers accountId={accountId} />
|
<FamiliarFollowers accountId={accountId} />
|
||||||
)}
|
)}
|
||||||
@ -195,8 +197,6 @@ export const AccountHeader: React.FC<{
|
|||||||
{!me && account.email_subscriptions && (
|
{!me && account.email_subscriptions && (
|
||||||
<AccountSubscriptionForm accountId={accountId} />
|
<AccountSubscriptionForm accountId={accountId} />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<AccountNumberFields accountId={accountId} />
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
@ -27,13 +27,6 @@ export const AccountNumberFields: FC<{ accountId: string }> = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<NumberFields>
|
<NumberFields>
|
||||||
<NumberFieldsItem
|
|
||||||
label={<FormattedMessage id='account.posts' defaultMessage='Posts' />}
|
|
||||||
hint={intl.formatNumber(account.statuses_count)}
|
|
||||||
>
|
|
||||||
<ShortNumber value={account.statuses_count} />
|
|
||||||
</NumberFieldsItem>
|
|
||||||
|
|
||||||
<NumberFieldsItem
|
<NumberFieldsItem
|
||||||
label={
|
label={
|
||||||
<FormattedMessage id='account.followers' defaultMessage='Followers' />
|
<FormattedMessage id='account.followers' defaultMessage='Followers' />
|
||||||
@ -54,6 +47,13 @@ export const AccountNumberFields: FC<{ accountId: string }> = ({
|
|||||||
<ShortNumber value={account.following_count} />
|
<ShortNumber value={account.following_count} />
|
||||||
</NumberFieldsItem>
|
</NumberFieldsItem>
|
||||||
|
|
||||||
|
<NumberFieldsItem
|
||||||
|
label={<FormattedMessage id='account.posts' defaultMessage='Posts' />}
|
||||||
|
hint={intl.formatNumber(account.statuses_count)}
|
||||||
|
>
|
||||||
|
<ShortNumber value={account.statuses_count} />
|
||||||
|
</NumberFieldsItem>
|
||||||
|
|
||||||
<NumberFieldsItem
|
<NumberFieldsItem
|
||||||
label={
|
label={
|
||||||
<FormattedMessage id='account.joined_short' defaultMessage='Joined' />
|
<FormattedMessage id='account.joined_short' defaultMessage='Joined' />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user