perf: modified the phone number in the cafe register flow

This commit is contained in:
Afra ‌ 2026-07-18 14:18:39 +03:30
parent 165c7fd0eb
commit 79db6c625a

View file

@ -35,12 +35,14 @@ function FormField({
hint, hint,
value, value,
onChange, onChange,
inputDir = "ltr",
}: { }: {
label: string; label: string;
placeholder: string; placeholder: string;
hint?: string; hint?: string;
value: string; value: string;
onChange: (value: string) => void; onChange: (value: string) => void;
inputDir?: "ltr" | "rtl";
}) { }) {
return ( return (
<div className="mt-5"> <div className="mt-5">
@ -49,6 +51,7 @@ function FormField({
</label> </label>
<input <input
type="text" type="text"
dir={inputDir}
value={value} value={value}
onChange={(e) => onChange(e.target.value)} onChange={(e) => onChange(e.target.value)}
placeholder={placeholder} placeholder={placeholder}
@ -752,10 +755,11 @@ export default function CafeOwnerRegister() {
/> />
<FormField <FormField
label="شماره تماس کافه" label="شماره تماس کافه"
placeholder="مثال: ۰۲۱-۱۲۳۴۵۶۷" placeholder={`\u2066۰۲۱-۱۲۳۴۵۶۷۸\u2069 :مثال`}
hint="شماره را همراه با پیش‌شماره شهر وارد کنید." hint="شماره را همراه با پیش‌شماره شهر وارد کنید."
value={cafePhone} value={cafePhone}
onChange={setCafePhone} onChange={setCafePhone}
inputDir="ltr"
/> />
<PhotoUpload <PhotoUpload
photos={photos} photos={photos}