diff --git a/src/components/FormInput/index.js b/src/components/FormInput/index.js index 7372a25..913e308 100644 --- a/src/components/FormInput/index.js +++ b/src/components/FormInput/index.js @@ -5,7 +5,7 @@ import DateRangePicker from "../DateRangePicker"; import Input from "../AnimatedInput/Input"; import CustomSelectBox from "../CustomSelectBox"; -const FormInput = () => { +const FormInput = ({ items }) => { const { register, getValues } = useForm(); const [selectedInput, setSelectedInput] = useState(false); @@ -62,7 +62,7 @@ const FormInput = () => { borderClassname={`border-transparent `} className={``} /> - + { }; export default FormInput; + +FormInput.defaultProps = { + items: [ + { + title: "mahdi", + }, + { + title: "mahdi", + }, + { + title: "mahdi", + }, + ], +};