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