Skip to content

Commit

Permalink
restyle ext portal as well
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Nov 21, 2024
1 parent 06e0175 commit b044011
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions editor.planx.uk/src/@planx/components/ExternalPortal/Editor.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import MenuItem from "@mui/material/MenuItem";
import {
ComponentType as TYPES,
NodeTag,
Expand All @@ -7,6 +8,7 @@ import React from "react";
import { ComponentTagSelect } from "ui/editor/ComponentTagSelect";
import ModalSection from "ui/editor/ModalSection";
import ModalSectionContent from "ui/editor/ModalSectionContent";
import SelectInput from "ui/editor/SelectInput/SelectInput";

import { ICONS } from "../shared/icons";

Expand Down Expand Up @@ -50,19 +52,25 @@ const ExternalPortalForm: React.FC<{
</span>
</ModalSectionContent>
<ModalSectionContent title="Pick a flow">
<select
<SelectInput
data-testid="flowId"
name="flowId"
value={formik.values.flowId}
onChange={formik.handleChange}
>
{!id && <option value="" />}
{flows.map((flow) => (
<option key={flow.id} value={flow.id}>
{flow.text}
</option>
))}
</select>
{flows.map((flow) => {
return (
<MenuItem
sx={(theme) => ({ fontSize: theme.typography.body3 })}
key={flow.id}
value={flow.id}
>
{flow.text}
</MenuItem>
);
})}
</SelectInput>
</ModalSectionContent>
<ComponentTagSelect
value={formik.values.tags}
Expand Down

0 comments on commit b044011

Please sign in to comment.