|
|
@ -1,4 +1,6 @@ |
|
|
|
import React, { useState } from "react"; |
|
|
|
// it has style inside index.scss ---> // Start FormInput Component && end FormInput Component
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import React from "react"; |
|
|
|
import { useForm } from "react-hook-form"; |
|
|
|
import { useForm } from "react-hook-form"; |
|
|
|
|
|
|
|
|
|
|
|
import DateRangePicker from "../DateRangePicker"; |
|
|
|
import DateRangePicker from "../DateRangePicker"; |
|
|
@ -9,8 +11,6 @@ import CustomSwitch from "../CustomSwitch"; |
|
|
|
const FormInput = ({ items }) => { |
|
|
|
const FormInput = ({ items }) => { |
|
|
|
const { register, getValues } = useForm(); |
|
|
|
const { register, getValues } = useForm(); |
|
|
|
|
|
|
|
|
|
|
|
const [selectedInput, setSelectedInput] = useState(false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="mx-auto w-fit mt-20 flex flex-row items-center justify-between divide-x-2 divide-[#F3F3F3] divide-x-reverse bg-white p-4 py-7 border border-gray-200 rounded-sm shadow-sm"> |
|
|
|
<div className="mx-auto w-fit mt-20 flex flex-row items-center justify-between divide-x-2 divide-[#F3F3F3] divide-x-reverse bg-white p-4 py-7 border border-gray-200 rounded-sm shadow-sm"> |
|
|
|
<div className="flex-grow flex-1 flex flex-col gap-y-4 px-4"> |
|
|
|
<div className="flex-grow flex-1 flex flex-col gap-y-4 px-4"> |
|
|
|