diff --git a/editor.planx.uk/src/pages/PlatformAdminPanel.tsx b/editor.planx.uk/src/pages/PlatformAdminPanel.tsx index 05d384c100..9f925f3ab6 100644 --- a/editor.planx.uk/src/pages/PlatformAdminPanel.tsx +++ b/editor.planx.uk/src/pages/PlatformAdminPanel.tsx @@ -13,21 +13,27 @@ import { useStore } from "pages/FlowEditor/lib/store"; import React from "react"; import useSWR from "swr"; import { AdminPanelData } from "types"; +import SettingsSection from "ui/editor/SettingsSection"; import Caret from "ui/icons/Caret"; const StyledTeamAccordion = styled(Accordion, { shouldForwardProp: (prop) => prop !== "primaryColour", })<{ primaryColour?: string }>(({ theme, primaryColour }) => ({ - borderTop: "none", // TODO figure out how to remove top border (box shadow?) when collapsed - borderLeft: `10px solid ${primaryColour}`, backgroundColor: theme.palette.background.paper, + outline: `1px solid ${theme.palette.border.light}`, width: "100%", position: "relative", - marginBottom: theme.spacing(2), - padding: theme.spacing(1), + "&::before": { + display: "none", + }, "&::after": { + content: "''", position: "absolute", - width: "100%", + left: 0, + top: 0, + width: theme.spacing(1.5), + height: "100%", + backgroundColor: primaryColour, }, })); @@ -36,15 +42,19 @@ function Component() { return ( - - Platform Admin Panel - + + + Platform Admin Panel + + {`This is an overview of each team's integrations and settings for the `} {process.env.REACT_APP_ENV} - {` environment`} + {` environment.`} + + {adminPanelData?.map((team) => )} - + ); } @@ -71,19 +81,22 @@ const TeamData: React.FC = ({ data }) => { id={`${data.name}-header`} aria-controls={`${data.name}-panel`} expandIcon={} - sx={{ pr: 1.5 }} + sx={{ p: 1.5, pl: 3 }} > - {data.name} + + {data.name} + - + <> {"Slug"} @@ -112,7 +125,7 @@ const TeamData: React.FC = ({ data }) => { - + <> {"Planning constraints"} @@ -146,7 +159,7 @@ const TeamData: React.FC = ({ data }) => { - + <> {"GOV.UK Notify"}