From ca1248c989d186b9694529bb87e19c082847db12 Mon Sep 17 00:00:00 2001 From: mahdi Date: Wed, 4 May 2022 21:40:46 +0430 Subject: [PATCH] update App.js, Input.js, src/components/PopupCard/index.js and src/components/UploadFile/index.js --- src/App.js | 2 +- src/components/AnimatedInput/Input.js | 8 +++---- src/components/PopupCard/index.js | 32 +++++++++------------------ src/components/UploadFile/index.js | 2 +- 4 files changed, 16 insertions(+), 28 deletions(-) diff --git a/src/App.js b/src/App.js index 3d582d9..575006d 100644 --- a/src/App.js +++ b/src/App.js @@ -207,7 +207,7 @@ function App() { {/* */} {/* ----------------------------$$$ end---------------------------- */} - + {/* */} {/* */} diff --git a/src/components/AnimatedInput/Input.js b/src/components/AnimatedInput/Input.js index bb41d4b..e96ee3b 100644 --- a/src/components/AnimatedInput/Input.js +++ b/src/components/AnimatedInput/Input.js @@ -4,7 +4,7 @@ import { useState } from "react"; import fixNumbers from "./fixNumbers"; -const FormFields = ({ +const Input = ({ defaultValue, set, label, @@ -23,7 +23,7 @@ const FormFields = ({
{ - const [activeInput, setActiveInput] = useState(false); + // const [activeInput, setActiveInput] = useState(false); + const [checklist, setChecklist] = useState(0); return ( @@ -35,17 +37,18 @@ const PopupCard = ({ selectedChecklist }) => { className="hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 w-full md:inset-0 h-modal md:h-full justify-center items-center" >
-
+
{/* cancle icon */}
{/* modalBody */} -
+
{/* top */} -
+
{/* right */} - + {/* { outlineTitleClr={activeInput ? "#22577E" : "#06BACE"} onFocus={() => setActiveInput(true)} onBlur={() => setActiveInput(false)} - /> + /> */} {/* divider */}
{/* left */} -
-
- - -
-
+
{/* divider */}
diff --git a/src/components/UploadFile/index.js b/src/components/UploadFile/index.js index 4918e32..0b8802f 100644 --- a/src/components/UploadFile/index.js +++ b/src/components/UploadFile/index.js @@ -48,7 +48,7 @@ export default class UploadFile extends Component { {/* ? upload input File */}
- +