Merge branch 'mfa-form-page' into 'develop'
Proper spacing on MFA page See merge request soapbox-pub/soapbox!2519
This commit is contained in:
commit
0a397c1cfe
|
@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
|
|||
import { useIntl, defineMessages } from 'react-intl';
|
||||
|
||||
import { fetchMfa } from 'soapbox/actions/mfa';
|
||||
import { Card, CardBody, CardHeader, CardTitle, Column, Stack } from 'soapbox/components/ui';
|
||||
import { Column, Stack } from 'soapbox/components/ui';
|
||||
import { useAppSelector, useAppDispatch } from 'soapbox/hooks';
|
||||
|
||||
import DisableOtpForm from './mfa/disable-otp-form';
|
||||
|
@ -37,13 +37,7 @@ const MfaForm: React.FC = () => {
|
|||
const mfa = useAppSelector((state) => state.security.get('mfa'));
|
||||
|
||||
return (
|
||||
<Column label={intl.formatMessage(messages.heading)} transparent withHeader={false}>
|
||||
<Card variant='rounded'>
|
||||
<CardHeader backHref='/settings'>
|
||||
<CardTitle title={intl.formatMessage(messages.heading)} />
|
||||
</CardHeader>
|
||||
|
||||
<CardBody>
|
||||
<Column label={intl.formatMessage(messages.heading)}>
|
||||
{mfa.getIn(['settings', 'totp']) ? (
|
||||
<DisableOtpForm />
|
||||
) : (
|
||||
|
@ -52,8 +46,6 @@ const MfaForm: React.FC = () => {
|
|||
{displayOtpForm && <OtpConfirmForm />}
|
||||
</Stack>
|
||||
)}
|
||||
</CardBody>
|
||||
</Card>
|
||||
</Column>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue