|
|
|
@ -16,29 +16,22 @@ const FormInput = ({ items }) => { |
|
|
|
|
<div className="flex-grow flex-1 flex flex-col gap-y-4 px-4"> |
|
|
|
|
<Input |
|
|
|
|
register={register("firstName")} |
|
|
|
|
// defaultValue={info?.firstName}
|
|
|
|
|
label="نام " |
|
|
|
|
type="text" |
|
|
|
|
borderClassname={`border-transparent `} |
|
|
|
|
className={``} |
|
|
|
|
// borderClassname={` ${
|
|
|
|
|
// selectedInput === true ? "border-[#2483E1]" : "border-[#E0E0E0]"
|
|
|
|
|
// }`}
|
|
|
|
|
// onClick={() => setSelectedInput(true)}
|
|
|
|
|
borderClassname={`border border-[#E0E0E0] `} |
|
|
|
|
inputClassname={`px-3 py-2 text-[#0F0543] focus:bg-white`} |
|
|
|
|
/> |
|
|
|
|
<Input |
|
|
|
|
register={register("lastName")} |
|
|
|
|
label="نام خانوادگی" |
|
|
|
|
type="text" |
|
|
|
|
borderClassname={`border-transparent `} |
|
|
|
|
className={``} |
|
|
|
|
borderClassname={`border border-[#E0E0E0] `} |
|
|
|
|
/> |
|
|
|
|
<Input |
|
|
|
|
register={register("birthYear")} |
|
|
|
|
label="تاریخ تولد" |
|
|
|
|
type="number" |
|
|
|
|
borderClassname={`border-transparent `} |
|
|
|
|
className={``} |
|
|
|
|
inputClassname={`px-3 py-2 text-[#0F0543] focus:bg-white`} |
|
|
|
|
/> |
|
|
|
|
<CustomSelectBox /> |
|
|
|
|
<CustomSwitch |
|
|
|
@ -53,42 +46,35 @@ const FormInput = ({ items }) => { |
|
|
|
|
register={register("mobileNumber")} |
|
|
|
|
label="شماره تماس" |
|
|
|
|
type="number" |
|
|
|
|
borderClassname={`border-transparent `} |
|
|
|
|
className={``} |
|
|
|
|
borderClassname={`border border-[#E0E0E0] `} |
|
|
|
|
inputClassname={`px-3 py-2 text-[#0F0543] focus:bg-white`} |
|
|
|
|
/> |
|
|
|
|
<Input |
|
|
|
|
register={register("job")} |
|
|
|
|
label="شغل" |
|
|
|
|
type="text" |
|
|
|
|
borderClassname={`border-transparent `} |
|
|
|
|
className={``} |
|
|
|
|
borderClassname={`border border-[#E0E0E0] `} |
|
|
|
|
inputClassname={`px-3 py-2 text-[#0F0543] focus:bg-white`} |
|
|
|
|
/> |
|
|
|
|
<CustomSelectBox options={items} /> |
|
|
|
|
<Input |
|
|
|
|
register={register("foundus")} |
|
|
|
|
label="نحوه آشنایی با موکب" |
|
|
|
|
type="text" |
|
|
|
|
borderClassname={`border-transparent `} |
|
|
|
|
className={``} |
|
|
|
|
borderClassname={`border border-[#E0E0E0] `} |
|
|
|
|
inputClassname={`px-3 py-2 text-[#0F0543] focus:bg-white`} |
|
|
|
|
/> |
|
|
|
|
<Input |
|
|
|
|
register={register("idCard")} |
|
|
|
|
label="کد ملی" |
|
|
|
|
type="number" |
|
|
|
|
borderClassname={`border-transparent `} |
|
|
|
|
className={``} |
|
|
|
|
borderClassname={`border border-[#E0E0E0] `} |
|
|
|
|
inputClassname={`px-3 py-2 text-[#0F0543] focus:bg-white`} |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
<div className="flex-grow flex-1 flex flex-col px-4 justify-between"> |
|
|
|
|
<lable>تاریخ ورود</lable> |
|
|
|
|
<DateRangePicker />{" "} |
|
|
|
|
{/* <Input |
|
|
|
|
register={register("lastName")} |
|
|
|
|
label="تاریخ ورود" |
|
|
|
|
type="text" |
|
|
|
|
borderClassname={`border-transparent `} |
|
|
|
|
className={``} |
|
|
|
|
/> */} |
|
|
|
|
<DateRangePicker /> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
); |
|
|
|
|