fix: Fixes Use recovery code option being shown on account creation (#2939)
This commit is contained in:
committed by
GitHub
parent
20787f0cc5
commit
0055696c35
@@ -170,15 +170,17 @@ const AdvancedOptions: FunctionComponent<Props> = ({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<div className="mb-1 flex items-center justify-between">
|
{onRecoveryCodesChange && (
|
||||||
<Checkbox
|
<div className="mb-1 flex items-center justify-between">
|
||||||
name="recovery-codes"
|
<Checkbox
|
||||||
label="Use recovery code"
|
name="recovery-codes"
|
||||||
checked={isRecoveryCodes}
|
label="Use recovery code"
|
||||||
disabled={disabled}
|
checked={isRecoveryCodes}
|
||||||
onChange={handleIsRecoveryCodesChange}
|
disabled={disabled}
|
||||||
/>
|
onChange={handleIsRecoveryCodesChange}
|
||||||
</div>
|
/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
{isRecoveryCodes && (
|
{isRecoveryCodes && (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user