diff --git a/new-ui/src/pages/full/ConfigureMfaPage/components/MfaCodeVerification/MfaCodeVerification.tsx b/new-ui/src/pages/full/ConfigureMfaPage/components/MfaCodeVerification/MfaCodeVerification.tsx
index 62da8463..ca60984d 100644
--- a/new-ui/src/pages/full/ConfigureMfaPage/components/MfaCodeVerification/MfaCodeVerification.tsx
+++ b/new-ui/src/pages/full/ConfigureMfaPage/components/MfaCodeVerification/MfaCodeVerification.tsx
@@ -1,28 +1,22 @@
import './style.scss';
-import type { ReactNode } from 'react';
+import type { PropsWithChildren, ReactNode } from 'react';
import { Button } from '../../../../../shared/components/Button/Button';
import { ButtonVariant } from '../../../../../shared/components/Button/types';
-import { CodeInput } from '../../../../../shared/components/CodeInput/CodeInput';
import { Controls } from '../../../../../shared/components/Controls/Controls';
import { Icon, type IconKindValue } from '../../../../../shared/components/Icon';
import { FullPage } from '../../../../../shared/layouts/FullPage/FullPage';
import { isPresent } from '../../../../../shared/utils/isPresent';
-const codeLength = 6;
-
-interface Props {
+interface Props extends PropsWithChildren {
id: string;
icon: IconKindValue;
title: string;
description: string[];
- code: string | null;
- error: string | null;
- onCodeChange: (value: string) => void;
- onSubmit: (pastedCode?: string) => void;
+ onSubmit: () => void;
+ submitText?: string;
leaveText: string;
onLeave: () => void;
extraAction?: ReactNode;
- codeLoading?: boolean;
isLeaving?: boolean;
leaveDisabled?: boolean;
submitLoading?: boolean;
@@ -34,14 +28,12 @@ export const MfaCodeVerification = ({
icon,
title,
description,
- code,
- error,
- onCodeChange,
+ children,
onSubmit,
+ submitText = 'Continue',
leaveText,
onLeave,
extraAction,
- codeLoading = false,
isLeaving = false,
leaveDisabled = false,
submitLoading = false,
@@ -57,14 +49,7 @@ export const MfaCodeVerification = ({
{line}
))}
-
+ {children}