AccountModerationModal: add account ID

This commit is contained in:
Alex Gleason 2022-09-11 14:20:05 -05:00
parent ca1a3d460c
commit a61cb2c7cd
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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}>