Mobile improvements for two-factor form
This commit is contained in:
parent
9a0ed6b291
commit
6ccac6e040
3 changed files with 21 additions and 7 deletions
|
@ -10,7 +10,13 @@ export default () => {
|
|||
|
||||
return user.useTotp ?
|
||||
<div>
|
||||
{visible && <DisableTwoFactorModal visible={visible} onDismissed={() => setVisible(false)}/>}
|
||||
{visible &&
|
||||
<DisableTwoFactorModal
|
||||
appear={true}
|
||||
visible={visible}
|
||||
onDismissed={() => setVisible(false)}
|
||||
/>
|
||||
}
|
||||
<p className={'text-sm'}>
|
||||
Two-factor authentication is currently enabled on your account.
|
||||
</p>
|
||||
|
@ -25,7 +31,13 @@ export default () => {
|
|||
</div>
|
||||
:
|
||||
<div>
|
||||
{visible && <SetupTwoFactorModal visible={visible} onDismissed={() => setVisible(false)}/>}
|
||||
{visible &&
|
||||
<SetupTwoFactorModal
|
||||
appear={true}
|
||||
visible={visible}
|
||||
onDismissed={() => setVisible(false)}
|
||||
/>
|
||||
}
|
||||
<p className={'text-sm'}>
|
||||
You do not currently have two-factor authentication enabled on your account. Click
|
||||
the button below to begin configuring it.
|
||||
|
|
Reference in a new issue