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 React from "react"; |
||||||
|
import { useForm } from "react-hook-form"; |
||||||
|
|
||||||
|
import Input from "./Input"; |
||||||
|
|
||||||
const FormInput = () => { |
const FormInput = () => { |
||||||
|
const { register, getValues } = useForm(); |
||||||
return ( |
return ( |
||||||
<div className="max-w-[850px] mx-auto mt-20 bg-white rounded-sm shadow-sm"> |
<div> |
||||||
sdfdsf |
<Input |
||||||
|
register={register("firstName")} |
||||||
|
// defaultValue={info?.firstName}
|
||||||
|
label="نام " |
||||||
|
/> |
||||||
|
<Input |
||||||
|
register={register("lastName")} |
||||||
|
// defaultValue={info?.lastName}
|
||||||
|
label="نام خانوادگی" |
||||||
|
/> |
||||||
</div> |
</div> |
||||||
); |
); |
||||||
}; |
}; |
||||||
|
|
||||||
export default FormInput; |
export default FormInput; |
||||||
|
|
||||||
|
// <div className="max-w-[850px] mx-auto mt-20 bg-white rounded-sm shadow-sm">
|
||||||
|
// </div>
|
||||||
|
Loading…
Reference in new issue