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.

28 lines
601 B

3 years ago
import React from "react";
import { useForm } from "react-hook-form";
import Input from "./Input";
3 years ago
const FormInput = () => {
const { register, getValues } = useForm();
3 years ago
return (
<div>
<Input
register={register("firstName")}
// defaultValue={info?.firstName}
label="نام "
/>
<Input
register={register("lastName")}
// defaultValue={info?.lastName}
label="نام خانوادگی"
/>
3 years ago
</div>
);
};
export default FormInput;
// <div className="max-w-[850px] mx-auto mt-20 bg-white rounded-sm shadow-sm">
// </div>