|
|
@ -6,25 +6,22 @@ import Input from "./Input"; |
|
|
|
const FormInput = () => { |
|
|
|
const FormInput = () => { |
|
|
|
const { register, getValues } = useForm(); |
|
|
|
const { register, getValues } = useForm(); |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="mx-72 mt-20 flex flex-row items-center justify-between divide-x-4 divide-red-600 divide-dashed divide-x-reverse bg-white p-7 border border-gray-200 rounded-sm shadow-sm"> |
|
|
|
<div className="mx-72 mt-20 flex flex-row items-center justify-between divide-x-2 divide-[#F3F3F3] divide-x-reverse bg-white p-4 py-7 border border-gray-200 rounded-sm shadow-sm"> |
|
|
|
{/* right */} |
|
|
|
<div className="flex-grow px-4"> |
|
|
|
<div className="bg-red-200"> |
|
|
|
|
|
|
|
<Input |
|
|
|
<Input |
|
|
|
register={register("firstName")} |
|
|
|
register={register("firstName")} |
|
|
|
// defaultValue={info?.firstName}
|
|
|
|
// defaultValue={info?.firstName}
|
|
|
|
label="نام " |
|
|
|
label="نام " |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* middle */} |
|
|
|
<div className="flex-grow px-4"> |
|
|
|
<div> |
|
|
|
|
|
|
|
<Input |
|
|
|
<Input |
|
|
|
register={register("firstName")} |
|
|
|
register={register("firstName")} |
|
|
|
// defaultValue={info?.firstName}
|
|
|
|
// defaultValue={info?.firstName}
|
|
|
|
label="نام " |
|
|
|
label="نام " |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* left */} |
|
|
|
<div className="flex-grow px-4"> |
|
|
|
<div> |
|
|
|
|
|
|
|
<Input |
|
|
|
<Input |
|
|
|
register={register("firstName")} |
|
|
|
register={register("firstName")} |
|
|
|
// defaultValue={info?.firstName}
|
|
|
|
// defaultValue={info?.firstName}
|
|
|
|