+
+ {backTo ? (
+
+
+
+ ) : (
+
+ )}
+
+ {step ? (
+
+ {Array.from({ length: step.total }, (_, index) => (
+
+ ))}
+
+ ) : null}
+
+
diff --git a/src/pages/auth/AuthPasswordField.tsx b/src/pages/auth/AuthPasswordField.tsx
index 742b1b2..63148c9 100644
--- a/src/pages/auth/AuthPasswordField.tsx
+++ b/src/pages/auth/AuthPasswordField.tsx
@@ -2,6 +2,7 @@ import { useState } from "react"
import { Eye, EyeOff } from "lucide-react"
import { Input } from "../../components/ui/input"
+import { useTranslation } from "../../hooks/useTranslation"
interface AuthPasswordFieldProps {
id: string
@@ -19,25 +20,29 @@ export function AuthPasswordField({
disabled = false,
}: AuthPasswordFieldProps) {
const [showPassword, setShowPassword] = useState(false)
+ const { lang } = useTranslation()
+ const isRtl = lang === "fa"
return (
-
+
onChange(event.target.value)}
- className="h-11 pe-10 text-start"
+ className={'h-11'}
/>
diff --git a/src/pages/auth/ForgotPasswordMobilePage.tsx b/src/pages/auth/ForgotPasswordMobilePage.tsx
index 88a665c..5ba0447 100644
--- a/src/pages/auth/ForgotPasswordMobilePage.tsx
+++ b/src/pages/auth/ForgotPasswordMobilePage.tsx
@@ -47,6 +47,8 @@ export function ForgotPasswordMobilePage() {
@@ -58,7 +60,7 @@ export function ForgotPasswordMobilePage() {
maxLength={11}
value={state.forgotPassword.mobile}
onChange={(event) => setMobile("forgotPassword", event.target.value)}
- className={`h-11 ${isRtl ? "text-end" : "text-start"}`}
+ className="h-11 text-start"
/>