diff --git a/app/soapbox/features/ui/components/modals/account-moderation-modal.tsx b/app/soapbox/features/ui/components/modals/account-moderation-modal.tsx index 2d338da3c1..0aca9b2f5a 100644 --- a/app/soapbox/features/ui/components/modals/account-moderation-modal.tsx +++ b/app/soapbox/features/ui/components/modals/account-moderation-modal.tsx @@ -1,15 +1,11 @@ import React from 'react'; -import { defineMessages, useIntl } from 'react-intl'; +import { FormattedMessage } from 'react-intl'; import MissingIndicator from 'soapbox/components/missing_indicator'; -import { Modal } from 'soapbox/components/ui'; +import { Button, HStack, Modal } from 'soapbox/components/ui'; import { useAppSelector } from 'soapbox/hooks'; import { makeGetAccount } from 'soapbox/selectors'; -const messages = defineMessages({ - title: { id: 'account_moderation_modal.title', defaultMessage: 'Moderate @{acct}' }, -}); - const getAccount = makeGetAccount(); interface IAccountModerationModal { @@ -21,7 +17,6 @@ interface IAccountModerationModal { /** Moderator actions against accounts. */ const AccountModerationModal: React.FC = ({ onClose, accountId }) => { - const intl = useIntl(); const account = useAppSelector(state => getAccount(state, accountId)); const handleClose = () => onClose('ACCOUNT_MODERATION'); @@ -34,12 +29,20 @@ const AccountModerationModal: React.FC = ({ onClose, ac ); } + const handleAdminFE = () => { + window.open(`/pleroma/admin/#/users/${account.id}/`, '_blank'); + }; + return ( } onClose={handleClose} > -
TODO
+ + +
); };