diff --git a/src/components/button/PrimaryButton.tsx b/src/components/button/PrimaryButton.tsx index 44dfccc..44797be 100644 --- a/src/components/button/PrimaryButton.tsx +++ b/src/components/button/PrimaryButton.tsx @@ -4,7 +4,7 @@ type Props = {} & React.ButtonHTMLAttributes; function Button({ children, className, ...rest }: Props) { return ( - ) diff --git a/src/components/input/InputField.tsx b/src/components/input/InputField.tsx index 42431b6..10dcee3 100644 --- a/src/components/input/InputField.tsx +++ b/src/components/input/InputField.tsx @@ -11,7 +11,7 @@ type Props = { function InputField({ onChange, htmlFor, labelText, children, valid = true, className, ...inputProps }: Props) { return ( -
+
diff --git a/src/features/auth/components/StepEnterOtp.tsx b/src/features/auth/components/StepEnterOtp.tsx index c468ae4..006f64f 100644 --- a/src/features/auth/components/StepEnterOtp.tsx +++ b/src/features/auth/components/StepEnterOtp.tsx @@ -1,6 +1,7 @@ import Button from '@/components/button/PrimaryButton'; import OTPInputField from '@/components/input/MultiInputField'; import { AUTH_PAGE_ELEMENT, AUTH_PAGE_ELEMENT as AUTH_PAGE_ELEMENTS } from '@/enums'; +import Image from 'next/image'; import React from 'react' type Props = { @@ -16,44 +17,55 @@ type Props = { function StepEnterOtp({ onSubmit, onChange, onClick, value, phoneNumber, timerRunning, secondsLeft }: Props) { return ( -
-
- -
- {/* // TODO: add persian digits font */} -
کد فعالسازی را وارد کنید
-

کد ۶ رقمی ارسال شده به شماره {phoneNumber} را وارد نمایید.

-
- - -
-
- {timerRunning ? -
{secondsLeft} ثانیه دیگر تا دریافت کد
: -
- کد را دریافت نکردید؟ - - - -
- } + +
+ login banner +
+
+ {/* // TODO: add persian digits font */} +
کد فعالسازی را وارد کنید
+

کد ۶ رقمی ارسال شده به شماره {phoneNumber} را وارد نمایید.

+
+ +
+ +
+
+ {timerRunning ? +
{secondsLeft} ثانیه دیگر تا دریافت کد
: +
+ کد را دریافت نکردید؟ + + + +
+ } +
+
+
- ) }