From 8190351e51dfabe0b1abe480a73f93e86b01561c Mon Sep 17 00:00:00 2001 From: Calli Date: Sun, 28 Apr 2024 10:08:55 +0300 Subject: [PATCH] Wrap totals in collapsible --- src/app/components/Summary/Summary.tsx | 102 ++++++++++++++----------- 1 file changed, 57 insertions(+), 45 deletions(-) diff --git a/src/app/components/Summary/Summary.tsx b/src/app/components/Summary/Summary.tsx index b4dc3ac..63760f7 100644 --- a/src/app/components/Summary/Summary.tsx +++ b/src/app/components/Summary/Summary.tsx @@ -15,8 +15,12 @@ import { useTheme, Stack, styled, + Accordion, + AccordionSummary, + AccordionDetails, } from "@mui/material"; import { useContext } from "react"; +import ExpandMoreIcon from "@mui/icons-material/ExpandMore"; const StackItem = styled(Stack)(({ theme }) => ({ ...theme.typography.body2, @@ -75,51 +79,59 @@ export const Summary = ({ characters }: { characters: AccessToken[] }) => { return ( -

Totals

- - - - - - - - Exports - - - - - - u/h - - - - - - ISK/M - - - - - - - {withProductNameAndPrice.map((product) => ( - - ))} - amount + p.price, - 0, - )} - /> - -
-
+ + }> +

Totals

+
+ + + + + + + + + Exports + + + + + + + u/h + + + + + + + ISK/M + + + + + + + {withProductNameAndPrice.map((product) => ( + + ))} + amount + p.price, + 0, + )} + /> + +
+
+
+
); };