You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import React from "react";
|
|
|
|
import { useForm } from "react-hook-form";
|
|
|
|
|
|
|
|
import Input from "./Input";
|
|
|
|
|
|
|
|
const FormInput = () => {
|
|
|
|
const { register, getValues } = useForm();
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<Input
|
|
|
|
register={register("firstName")}
|
|
|
|
// defaultValue={info?.firstName}
|
|
|
|
label="نام "
|
|
|
|
/>
|
|
|
|
<Input
|
|
|
|
register={register("lastName")}
|
|
|
|
// defaultValue={info?.lastName}
|
|
|
|
label="نام خانوادگی"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default FormInput;
|
|
|
|
|
|
|
|
// <div className="max-w-[850px] mx-auto mt-20 bg-white rounded-sm shadow-sm">
|
|
|
|
// </div>
|