mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
26 lines
743 B
TypeScript
26 lines
743 B
TypeScript
import {Fragment} from 'react';
|
|
|
|
import Confirm from 'sentry/components/confirm';
|
|
import {t} from 'sentry/locale';
|
|
import ConfirmHeader from 'sentry/views/settings/account/accountSecurity/components/confirmHeader';
|
|
import TextBlock from 'sentry/views/settings/components/text/textBlock';
|
|
|
|
type Props = React.ComponentProps<typeof Confirm>;
|
|
|
|
const message = (
|
|
<Fragment>
|
|
<ConfirmHeader>{t('Do you want to remove this method?')}</ConfirmHeader>
|
|
<TextBlock>
|
|
{t(
|
|
'Removing the last authentication method will disable two-factor authentication completely.'
|
|
)}
|
|
</TextBlock>
|
|
</Fragment>
|
|
);
|
|
|
|
function RemoveConfirm(props: Props) {
|
|
return <Confirm {...props} message={message} />;
|
|
}
|
|
|
|
export default RemoveConfirm;
|