aboutsummaryrefslogtreecommitdiff
path: root/src/components/Display/SummaryDisplay.tsx
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-08-29 10:46:06 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-08-29 10:46:06 +0530
commit20b48b0003f198ef51eb982735526011f59c511d (patch)
treed05ee38c6b0b137e3a3eabeb0d101000d9acd2f4 /src/components/Display/SummaryDisplay.tsx
parent12fa58555681257384150383b4e83c572d19fec9 (diff)
styled SubmitButton and making it disappear when invalid
Diffstat (limited to 'src/components/Display/SummaryDisplay.tsx')
-rw-r--r--src/components/Display/SummaryDisplay.tsx8
1 files changed, 5 insertions, 3 deletions
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>
);
}