feature/WNPT-307 #4
1 changed files with 5 additions and 1 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue