From 20b48b0003f198ef51eb982735526011f59c511d Mon Sep 17 00:00:00 2001
From: MikunoNaka <bokuwakanojogahoshii@yahoo.com>
Date: Sun, 29 Aug 2021 10:46:06 +0530
Subject: styled SubmitButton and making it disappear when invalid

---
 src/components/Display/SummaryDisplay.tsx | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'src/components/Display/SummaryDisplay.tsx')

diff --git a/src/components/Display/SummaryDisplay.tsx b/src/components/Display/SummaryDisplay.tsx
index 5d1589e..37ba077 100644
--- a/src/components/Display/SummaryDisplay.tsx
+++ b/src/components/Display/SummaryDisplay.tsx
@@ -92,9 +92,11 @@ const SummaryDisplay: React.FC<props> = (props) => {
         </tbody>
       </table>
 
-      <button onClick={() => props.setShowSubmitMenu(true)}>
-        Submit
-      </button>
+      {props.items.length > 0 &&
+        <button className={"SubmitButton"} onClick={() => props.setShowSubmitMenu(true)}>
+          Submit (experimental)
+        </button>
+      }
     </div>
   );
 }
-- 
cgit v1.2.3

