From 5db7b2e878dd8a5bc5c8e3dafadd990b72dfa953 Mon Sep 17 00:00:00 2001 From: Jessica McInchak Date: Thu, 13 Jun 2024 11:01:32 +0200 Subject: [PATCH] chore: drop "LIST_COMPONENT" feature flag (#3269) --- editor.planx.uk/src/lib/featureFlags.ts | 5 +---- .../src/pages/FlowEditor/components/forms/FormModal.tsx | 4 +--- editor.planx.uk/src/pages/Preview/Node.tsx | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/editor.planx.uk/src/lib/featureFlags.ts b/editor.planx.uk/src/lib/featureFlags.ts index a6a4304ce6..022965a276 100644 --- a/editor.planx.uk/src/lib/featureFlags.ts +++ b/editor.planx.uk/src/lib/featureFlags.ts @@ -1,8 +1,5 @@ // add/edit/remove feature flags in array below -const AVAILABLE_FEATURE_FLAGS = [ - "EDITOR_NAVIGATION", - "LIST_COMPONENT", -] as const; +const AVAILABLE_FEATURE_FLAGS = ["EDITOR_NAVIGATION"] as const; type FeatureFlag = (typeof AVAILABLE_FEATURE_FLAGS)[number]; diff --git a/editor.planx.uk/src/pages/FlowEditor/components/forms/FormModal.tsx b/editor.planx.uk/src/pages/FlowEditor/components/forms/FormModal.tsx index fb12ce623b..1aae0ee578 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/forms/FormModal.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/forms/FormModal.tsx @@ -61,9 +61,7 @@ const NodeTypeSelect: React.FC<{ - {hasFeatureFlag("LIST_COMPONENT") && ( - - )} + diff --git a/editor.planx.uk/src/pages/Preview/Node.tsx b/editor.planx.uk/src/pages/Preview/Node.tsx index eb6ace5e29..827b2633b5 100644 --- a/editor.planx.uk/src/pages/Preview/Node.tsx +++ b/editor.planx.uk/src/pages/Preview/Node.tsx @@ -170,7 +170,7 @@ const Node: React.FC = (props: Props) => { return ; case TYPES.List: - return hasFeatureFlag("LIST_COMPONENT") ? : null; + return ; case TYPES.NextSteps: return ;