diff --git a/src/components/ElementOption.tsx b/src/components/ElementOption.tsx index 5a26c0ec3..e2fd995ec 100644 --- a/src/components/ElementOption.tsx +++ b/src/components/ElementOption.tsx @@ -2,6 +2,8 @@ import React from "react"; type PropsElementOption = { label: string; + type?: string; + options?: Array; value: string; onChange: Function; }; @@ -9,17 +11,24 @@ function ElementOption(props: PropsElementOption) { const handleChangeInput = (e: React.FormEvent) => { props.onChange(e.currentTarget.value); }; + const handleChangeSelect = (e: React.FormEvent) => { + props.onChange(e.currentTarget.value); + }; return ( <> -