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 401c9ceeeb..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 @@ -2,8 +2,8 @@ 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"; @@ -54,19 +54,22 @@ const EventsLog: React.FC = ({ return ( - +
- + Event - + + Status + + Date - + Session ID - + @@ -85,30 +88,26 @@ const CollapsibleRow: React.FC = (submission) => { return ( *": { borderBottom: "unset" } }}> - - + theme.spacing(1), + display: "flex", + flexDirection: "row", + alignItems: "center", }} > - {submission.eventType === "Pay" ? ( - - ) : ( - - )} - - {submission.eventType} + {submission.eventType === "Pay" ? : } + + {submission.eventType} + + + + + {submission.status === "Success" ? ( + + ) : ( + + )} {format(new Date(submission.createdAt), "dd/MM/yy hh:mm:ss")} @@ -125,8 +124,17 @@ const CollapsibleRow: React.FC = (submission) => { theme.palette.background.paper }}> - - + + + `1px solid ${theme.palette.border.light}`, + padding: (theme) => theme.spacing(0, 1.5), + }} + > @@ -153,6 +161,7 @@ const FormattedResponse: React.FC = (submission) => { margin: 1, maxWidth: "contentWrap", overflowWrap: "break-word", + whiteSpace: "pre-wrap", }} > {submission.status === "Success"