feature/WNPT-307 #4

Merged
afra.khalaj merged 3 commits from feature/WNPT-307 into develop 2026-07-18 06:49:16 -04:00
Showing only changes of commit 79db6c625a - Show all commits

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}