From 846e01bbb32497770ff0e046d4701d339cfc45ed Mon Sep 17 00:00:00 2001 From: Ian Jones Date: Thu, 16 May 2024 13:36:20 +0100 Subject: [PATCH] feat: Separate column for status --- .../Settings/Submissions/EventsLog.tsx | 37 ++++++++----------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Settings/Submissions/EventsLog.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Settings/Submissions/EventsLog.tsx index 5265e4244a..c8df590aa6 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Settings/Submissions/EventsLog.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Settings/Submissions/EventsLog.tsx @@ -1,11 +1,9 @@ -import CancelIcon from "@mui/icons-material/Cancel"; -import CheckCircleIcon from "@mui/icons-material/CheckCircle"; import KeyboardArrowDown from "@mui/icons-material/KeyboardArrowDown"; import KeyboardArrowUp from "@mui/icons-material/KeyboardArrowUp"; import Payment from "@mui/icons-material/Payment"; import Send from "@mui/icons-material/Send"; -import Avatar from "@mui/material/Avatar"; import Box from "@mui/material/Box"; +import Chip from "@mui/material/Chip"; import Collapse from "@mui/material/Collapse"; import IconButton from "@mui/material/IconButton"; import { styled } from "@mui/material/styles"; @@ -59,16 +57,19 @@ const EventsLog: React.FC = ({ - + Event - + + Status + + Date Session ID - + @@ -95,25 +96,19 @@ const CollapsibleRow: React.FC = (submission) => { alignItems: "center", }} > - theme.spacing(1.5), - }} - > - {submission.status === "Success" ? ( - - ) : ( - - )} - - {submission.eventType === "Pay" ? : } - + {submission.eventType} + + {submission.status === "Success" ? ( + + ) : ( + + )} + {format(new Date(submission.createdAt), "dd/MM/yy hh:mm:ss")} @@ -129,7 +124,7 @@ const CollapsibleRow: React.FC = (submission) => { theme.palette.background.paper }}> - +