From 4301e424289a10df5eb4c5472a842f04178b62a5 Mon Sep 17 00:00:00 2001 From: mahdi andalib Date: Fri, 1 Apr 2022 17:53:53 +0430 Subject: [PATCH] update --- src/App.js | 2 +- src/components/PopupCard/index.js | 54 +++++++++++++++++++++++++------ 2 files changed, 45 insertions(+), 11 deletions(-) diff --git a/src/App.js b/src/App.js index 906a587..5765906 100644 --- a/src/App.js +++ b/src/App.js @@ -117,7 +117,7 @@ function App() { */} {/* */} {/* */} - {/* */} + {/* */} {/* */} {/* */} diff --git a/src/components/PopupCard/index.js b/src/components/PopupCard/index.js index 48c10f2..53b7657 100644 --- a/src/components/PopupCard/index.js +++ b/src/components/PopupCard/index.js @@ -6,6 +6,7 @@ import calender from "./calender.svg"; const PopupCard = ({ textArea }) => { const [activeInput, setActiveInput] = useState(false); + const [checklist, setChecklist] = useState(0); return (
@@ -76,13 +77,10 @@ const PopupCard = ({ textArea }) => { {/* divider */}
{/* middle */} -
+
{/* right */} -
- +
+ {textArea} { > نام کارت -
- - چک لیست ها +
+
+ + چک لیست ها +
+ {checklist} + +
+ setChecklist(checklist + 25)} + /> + چک لیست ها +
+
+ setChecklist(checklist + 25)} + /> + چک لیست ها +
{/* divider */} -
+
+ {/* left */} +
+
+ + +
+