removeConfirm.tsx 733 B

1234567891011121314151617181920212223
  1. import {Fragment} from 'react';
  2. import Confirm from 'sentry/components/confirm';
  3. import {t} from 'sentry/locale';
  4. import ConfirmHeader from 'sentry/views/settings/account/accountSecurity/components/confirmHeader';
  5. import TextBlock from 'sentry/views/settings/components/text/textBlock';
  6. type Props = React.ComponentProps<typeof Confirm>;
  7. const message = (
  8. <Fragment>
  9. <ConfirmHeader>{t('Do you want to remove this method?')}</ConfirmHeader>
  10. <TextBlock>
  11. {t(
  12. 'Removing the last authentication method will disable two-factor authentication completely.'
  13. )}
  14. </TextBlock>
  15. </Fragment>
  16. );
  17. const RemoveConfirm = (props: Props) => <Confirm {...props} message={message} />;
  18. export default RemoveConfirm;