|
|
@ -6,22 +6,14 @@ import Input from "./Input"; |
|
|
|
const FormInput = () => { |
|
|
|
const FormInput = () => { |
|
|
|
const { register, getValues } = useForm(); |
|
|
|
const { register, getValues } = useForm(); |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div> |
|
|
|
<div className="max-w-[1000px] p-20 mx-auto mt-20 bg-white rounded-sm shadow-sm"> |
|
|
|
<Input |
|
|
|
<Input |
|
|
|
register={register("firstName")} |
|
|
|
register={register("firstName")} |
|
|
|
// defaultValue={info?.firstName}
|
|
|
|
// defaultValue={info?.firstName}
|
|
|
|
label="نام " |
|
|
|
label="نام " |
|
|
|
/> |
|
|
|
/> |
|
|
|
<Input |
|
|
|
|
|
|
|
register={register("lastName")} |
|
|
|
|
|
|
|
// defaultValue={info?.lastName}
|
|
|
|
|
|
|
|
label="نام خانوادگی" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
); |
|
|
|
); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
export default FormInput; |
|
|
|
export default FormInput; |
|
|
|
|
|
|
|
|
|
|
|
// <div className="max-w-[850px] mx-auto mt-20 bg-white rounded-sm shadow-sm">
|
|
|
|
|
|
|
|
// </div>
|
|
|
|
|
|
|
|