build(deps): update package-lock.json, package.json, src/components/FormInput/index.js and yarn.lock
parent
5d8843a3e2
commit
443fb50be5
1 changed files with 18 additions and 2 deletions
@ -1,11 +1,27 @@ |
||||
import React from "react"; |
||||
import { useForm } from "react-hook-form"; |
||||
|
||||
import Input from "./Input"; |
||||
|
||||
const FormInput = () => { |
||||
const { register, getValues } = useForm(); |
||||
return ( |
||||
<div className="max-w-[850px] mx-auto mt-20 bg-white rounded-sm shadow-sm"> |
||||
sdfdsf |
||||
<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>
|
||||
|
Loading…
Reference in new issue