master
parent
50bc806207
commit
73829d14d8
3 changed files with 59 additions and 8 deletions
@ -1,7 +1,39 @@ |
||||
import React from "react"; |
||||
|
||||
import { useForm } from "react-hook-form"; |
||||
|
||||
import Input from "../FormInput/Input"; |
||||
|
||||
const TestComponentNew = () => { |
||||
return <div>TestComponentNew</div>; |
||||
const { register, getValues } = useForm(); |
||||
|
||||
return ( |
||||
<div> |
||||
<div className="flex mx-auto w-3/5 justify-between divide-x-2 divide-x-reverse bg-red-50"> |
||||
<div className="flex-grow text-center font-bold bg-blue-400 px-5"> |
||||
<Input |
||||
register={register("firstName")} |
||||
// defaultValue={info?.firstName}
|
||||
label="نام " |
||||
/> |
||||
</div> |
||||
<div className="flex-grow text-center font-bold bg-blue-400 px-5"> |
||||
<Input |
||||
register={register("firstName")} |
||||
// defaultValue={info?.firstName}
|
||||
label="نام " |
||||
/> |
||||
</div> |
||||
<div className="flex-grow text-center font-bold bg-blue-400 px-5"> |
||||
<Input |
||||
register={register("firstName")} |
||||
// defaultValue={info?.firstName}
|
||||
label="نام " |
||||
/> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
); |
||||
}; |
||||
|
||||
export default TestComponentNew; |
||||
|
Loading…
Reference in new issue