diff --git a/src/components/Forms/_FormElement.js b/src/components/Forms/_FormElement.js index e009c7a..3bd7324 100644 --- a/src/components/Forms/_FormElement.js +++ b/src/components/Forms/_FormElement.js @@ -1,6 +1,19 @@ -import React from "react"; +import React,{useState} from "react"; const FormElement = ({ Label, Value, Type, onChange, onSwitch, ImageHandler }) => { + const [fix,setfix] = useState(""); + const hoverClick=()=>{ + onSwitch(); + if (fix === "") { + setfix("yes"); + } + else { + setfix(""); + } + } + + + return (