From f85c21ef3cf2b850084e99afd18876f48a43e2b0 Mon Sep 17 00:00:00 2001
From: Tanner Collin
Date: Sat, 19 Mar 2022 01:19:09 +0000
Subject: [PATCH] Ensure member clears shelves before pausing
---
webclient/src/AdminMembers.js | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/webclient/src/AdminMembers.js b/webclient/src/AdminMembers.js
index ae3b033..b89ca9d 100644
--- a/webclient/src/AdminMembers.js
+++ b/webclient/src/AdminMembers.js
@@ -314,7 +314,8 @@ export function AdminMemberPause(props) {
const [error, setError] = useState(false);
const [loading, setLoading] = useState(false);
const [success, setSuccess] = useState(false);
- const [told, setTold] = useState(false);
+ const [told1, setTold1] = useState(false);
+ const [told2, setTold2] = useState(false);
const { id } = useParams();
useEffect(() => {
@@ -336,6 +337,8 @@ export function AdminMemberPause(props) {
console.log(err);
setError(true);
});
+ setTold1(false);
+ setTold2(false);
};
const handleUnpause = (e) => {
@@ -371,14 +374,23 @@ export function AdminMemberPause(props) {
setTold(v.checked)}
+ onChange={(e, v) => setTold1(v.checked)}
+ />
+
+
+
setTold2(v.checked)}
/>
-