diff --git a/resources/scripts/components/dashboard/forms/ConfigureTwoFactorForm.tsx b/resources/scripts/components/dashboard/forms/ConfigureTwoFactorForm.tsx index aadd388ee..dc6b467a6 100644 --- a/resources/scripts/components/dashboard/forms/ConfigureTwoFactorForm.tsx +++ b/resources/scripts/components/dashboard/forms/ConfigureTwoFactorForm.tsx @@ -10,7 +10,13 @@ export default () => { return user.useTotp ?
- {visible && setVisible(false)}/>} + {visible && + setVisible(false)} + /> + }

Two-factor authentication is currently enabled on your account.

@@ -25,7 +31,13 @@ export default () => {
:
- {visible && setVisible(false)}/>} + {visible && + setVisible(false)} + /> + }

You do not currently have two-factor authentication enabled on your account. Click the button below to begin configuring it. diff --git a/resources/scripts/components/dashboard/forms/SetupTwoFactorModal.tsx b/resources/scripts/components/dashboard/forms/SetupTwoFactorModal.tsx index 5a9439ad5..01e6f0c88 100644 --- a/resources/scripts/components/dashboard/forms/SetupTwoFactorModal.tsx +++ b/resources/scripts/components/dashboard/forms/SetupTwoFactorModal.tsx @@ -63,9 +63,9 @@ export default ({ ...props }: RequiredModalProps) => { >

-
-
-
+
+
+
{!token || !token.length ? { }
-
+
{ autoFocus={!loading} />
-
+
diff --git a/resources/scripts/components/elements/Modal.tsx b/resources/scripts/components/elements/Modal.tsx index 195495dfe..075b5f01a 100644 --- a/resources/scripts/components/elements/Modal.tsx +++ b/resources/scripts/components/elements/Modal.tsx @@ -7,6 +7,7 @@ import Spinner from '@/components/elements/Spinner'; export interface RequiredModalProps { visible: boolean; onDismissed: () => void; + appear?: boolean; } type Props = RequiredModalProps & { @@ -38,6 +39,7 @@ export default (props: Props) => { props.onDismissed()}