From 9f649a16cab78e9961923de79750ae26aa739d34 Mon Sep 17 00:00:00 2001 From: mahdi Date: Sun, 1 May 2022 09:29:18 +0430 Subject: [PATCH] update src/components/FormInput/index.js --- src/components/FormInput/index.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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", + }, + ], +};