build(deps): update package-lock.json, package.json, src/components/FormInput/index.js and yarn.lock

master
mahdi 2 years ago
parent 5d8843a3e2
commit 443fb50be5
  1. 20
      src/components/FormInput/index.js

@ -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…
Cancel
Save