AccountModerationModal: add account ID
This commit is contained in:
parent
ca1a3d460c
commit
a61cb2c7cd
1 changed files with 9 additions and 1 deletions
|
@ -13,7 +13,7 @@ import snackbar from 'soapbox/actions/snackbar';
|
||||||
import Account from 'soapbox/components/account';
|
import Account from 'soapbox/components/account';
|
||||||
import List, { ListItem } from 'soapbox/components/list';
|
import List, { ListItem } from 'soapbox/components/list';
|
||||||
import MissingIndicator from 'soapbox/components/missing_indicator';
|
import MissingIndicator from 'soapbox/components/missing_indicator';
|
||||||
import { Button, HStack, Modal, Stack, Toggle } from 'soapbox/components/ui';
|
import { Button, Text, HStack, Modal, Stack, Toggle } from 'soapbox/components/ui';
|
||||||
import { useAppDispatch, useAppSelector, useFeatures } from 'soapbox/hooks';
|
import { useAppDispatch, useAppSelector, useFeatures } from 'soapbox/hooks';
|
||||||
import { makeGetAccount } from 'soapbox/selectors';
|
import { makeGetAccount } from 'soapbox/selectors';
|
||||||
import { isLocal } from 'soapbox/utils/accounts';
|
import { isLocal } from 'soapbox/utils/accounts';
|
||||||
|
@ -141,6 +141,14 @@ const AccountModerationModal: React.FC<IAccountModerationModal> = ({ onClose, ac
|
||||||
)}
|
)}
|
||||||
</List>
|
</List>
|
||||||
|
|
||||||
|
<Text theme='subtle' size='xs'>
|
||||||
|
<FormattedMessage
|
||||||
|
id='account_moderation_modal.info.id'
|
||||||
|
defaultMessage='ID: {id}'
|
||||||
|
values={{ id: account.id }}
|
||||||
|
/>
|
||||||
|
</Text>
|
||||||
|
|
||||||
{features.adminFE && (
|
{features.adminFE && (
|
||||||
<HStack justifyContent='center'>
|
<HStack justifyContent='center'>
|
||||||
<Button icon={require('@tabler/icons/external-link.svg')} size='sm' theme='secondary' onClick={handleAdminFE}>
|
<Button icon={require('@tabler/icons/external-link.svg')} size='sm' theme='secondary' onClick={handleAdminFE}>
|
||||||
|
|
Loading…
Reference in a new issue