update Input.js, src/components/FormInput/index.js and src/index.scss

master
mahdi 2 years ago
parent 9f649a16ca
commit a5cc845b06
  1. 2
      src/components/AnimatedInput/Input.js
  2. 1
      src/components/FormInput/index.js

@ -30,7 +30,7 @@ const FormFields = ({
>
<div
className={
"text-xs absolute transition-all duration-300 pointer-events-none px-3 transform -translate-x-[7px]" +
"text-xs absolute transition-all duration-300 pointer-events-none px-3 transform translate-x-[7px]" +
(value
? `text-[#2483E1] bg-white top-[-10px]`
: "text-[#0F0543] top-[10px]")

@ -7,6 +7,7 @@ import CustomSelectBox from "../CustomSelectBox";
const FormInput = ({ items }) => {
const { register, getValues } = useForm();
const [selectedInput, setSelectedInput] = useState(false);
return (

Loading…
Cancel
Save