|
|
@ -76,7 +76,7 @@ function SignUp({ |
|
|
|
sendPhoneNumber({ cellphone: signUpFields?.cellphone }); |
|
|
|
sendPhoneNumber({ cellphone: signUpFields?.cellphone }); |
|
|
|
setError(undefined); |
|
|
|
setError(undefined); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
setError("شماره موبایل خود را چک کنید."); |
|
|
|
setError(window.t("شماره موبایل خود را وارد کنید.")); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -99,7 +99,7 @@ function SignUp({ |
|
|
|
}); |
|
|
|
}); |
|
|
|
setError(undefined); |
|
|
|
setError(undefined); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
setError("کد وارد شده را چک کنید."); |
|
|
|
setError(window.t("کد وارد شده را چک کنید.")); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -148,11 +148,11 @@ function SignUp({ |
|
|
|
> |
|
|
|
> |
|
|
|
<img src={logoIcon} alt="" className="" /> |
|
|
|
<img src={logoIcon} alt="" className="" /> |
|
|
|
<strong className="w-full leading-6 dark:text-white mt-10"> |
|
|
|
<strong className="w-full leading-6 dark:text-white mt-10"> |
|
|
|
سلام <br /> خوش برگشتی! |
|
|
|
{window.t("سلام")} <br /> {window.t("خوش برگشتی!")} |
|
|
|
</strong> |
|
|
|
</strong> |
|
|
|
<div className="w-full flex flex-col mt-10"> |
|
|
|
<div className="w-full flex flex-col mt-10"> |
|
|
|
<Input |
|
|
|
<Input |
|
|
|
label={"شماره موبایل"} |
|
|
|
label={window.t("شماره موبایل")} |
|
|
|
name="cellphone" |
|
|
|
name="cellphone" |
|
|
|
regex={onInput.numberOnly} |
|
|
|
regex={onInput.numberOnly} |
|
|
|
onChange={(name, value) => onChange(name, value)} |
|
|
|
onChange={(name, value) => onChange(name, value)} |
|
|
@ -164,7 +164,7 @@ function SignUp({ |
|
|
|
<span className="text-red-500 text-xs">{error}</span> |
|
|
|
<span className="text-red-500 text-xs">{error}</span> |
|
|
|
<br /> |
|
|
|
<br /> |
|
|
|
<Button |
|
|
|
<Button |
|
|
|
title="ادامه" |
|
|
|
label={window.t("ادامه")} |
|
|
|
backgroundColor="bg-blueC0" |
|
|
|
backgroundColor="bg-blueC0" |
|
|
|
border={{ color: "#196EC055", width: "0px" }} |
|
|
|
border={{ color: "#196EC055", width: "0px" }} |
|
|
|
width="100%" |
|
|
|
width="100%" |
|
|
@ -181,13 +181,14 @@ function SignUp({ |
|
|
|
<img src={logoIcon} alt="" className="" /> |
|
|
|
<img src={logoIcon} alt="" className="" /> |
|
|
|
{!resend && ( |
|
|
|
{!resend && ( |
|
|
|
<div className="w-full leading-6 dark:text-white mt-10 text-xs lg:text-sm text-gray1"> |
|
|
|
<div className="w-full leading-6 dark:text-white mt-10 text-xs lg:text-sm text-gray1"> |
|
|
|
یک کد چهار رقمی تا {" "} |
|
|
|
{window.t("یک کد چهار رقمی تا")} |
|
|
|
<Timer seconds={120} refresh={setResend} /> دیگر برای شماره |
|
|
|
<Timer seconds={120} refresh={setResend} /> |
|
|
|
{" "} |
|
|
|
{window.t("دیگر برای شماره")} |
|
|
|
|
|
|
|
|
|
|
|
<span className="text-greenBA text-sm lg:text-tiny"> |
|
|
|
<span className="text-greenBA text-sm lg:text-tiny"> |
|
|
|
{signUpFields?.cellphone} |
|
|
|
{signUpFields?.cellphone} |
|
|
|
</span>{" "} |
|
|
|
</span>{" "} |
|
|
|
ارسال خواهد شد. |
|
|
|
{window.t("ارسال خواهد شد.")} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
)} |
|
|
|
)} |
|
|
|
|
|
|
|
|
|
|
@ -267,6 +268,7 @@ function SignUp({ |
|
|
|
<div className="mt-10 flex flex-row text-center w-full justify-center"> |
|
|
|
<div className="mt-10 flex flex-row text-center w-full justify-center"> |
|
|
|
<div className="text-xs text-gray1 dark:text-gray-200 lg:text-sm"> |
|
|
|
<div className="text-xs text-gray1 dark:text-gray-200 lg:text-sm"> |
|
|
|
شماره خود را اشتباه وارد کردید؟ |
|
|
|
شماره خود را اشتباه وارد کردید؟ |
|
|
|
|
|
|
|
|
|
|
|
<button |
|
|
|
<button |
|
|
|
className="bg-transparent border-none text-greenBA font-medium" |
|
|
|
className="bg-transparent border-none text-greenBA font-medium" |
|
|
|
onClick={() => setLevel("phonenumber")} |
|
|
|
onClick={() => setLevel("phonenumber")} |
|
|
|