diff --git a/editor.planx.uk/src/@planx/components/Pay/Editor/Editor.tsx b/editor.planx.uk/src/@planx/components/Pay/Editor/Editor.tsx index ea2dd22762..bd13b07e63 100644 --- a/editor.planx.uk/src/@planx/components/Pay/Editor/Editor.tsx +++ b/editor.planx.uk/src/@planx/components/Pay/Editor/Editor.tsx @@ -1,5 +1,10 @@ import { ComponentType as TYPES } from "@opensystemslab/planx-core/types"; -import { parsePay, Pay, PAY_FN, validationSchema } from "@planx/components/Pay/model"; +import { + parsePay, + Pay, + PAY_FN, + validationSchema, +} from "@planx/components/Pay/model"; import { Form, Formik } from "formik"; import React from "react"; import { ComponentTagSelect } from "ui/editor/ComponentTagSelect"; @@ -14,7 +19,6 @@ import { Switch } from "ui/shared/Switch"; import { ICONS } from "../../shared/icons"; import { EditorProps } from "../../shared/types"; -import { FeeBreakdownSection } from "./FeeBreakdownSection"; import { GovPayMetadataSection } from "./GovPayMetadataSection"; import { InviteToPaySection } from "./InviteToPaySection"; @@ -66,12 +70,7 @@ const Component: React.FC = (props: Props) => { /> - + @@ -101,9 +100,8 @@ const Component: React.FC = (props: Props) => { - - - + + { - if (!hasFeatureFlag("FEE_BREAKDOWN")) return null; - - return ( - - - - - - ); -};