Skip to content

Commit

Permalink
Remove feature flag for feedback component
Browse files Browse the repository at this point in the history
  • Loading branch information
jamdelion committed Nov 19, 2024
1 parent 3c17075 commit aa0484e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion editor.planx.uk/src/lib/featureFlags.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// add/edit/remove feature flags in array below
const AVAILABLE_FEATURE_FLAGS = ["FEEDBACK_COMPONENT"] as const;
const AVAILABLE_FEATURE_FLAGS = [] as const;

type FeatureFlag = (typeof AVAILABLE_FEATURE_FLAGS)[number];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { styled } from "@mui/material/styles";
import { ComponentType as TYPES } from "@opensystemslab/planx-core/types";
import { parseFormValues } from "@planx/components/shared";
import ErrorFallback from "components/Error/ErrorFallback";
import { hasFeatureFlag } from "lib/featureFlags";
import React from "react";
import { ErrorBoundary } from "react-error-boundary";
import { useNavigation } from "react-navi";
Expand Down Expand Up @@ -64,9 +63,7 @@ const NodeTypeSelect: React.FC<{
<option value={TYPES.List}>List</option>
<option value={TYPES.Page}>Page</option>
<option value={TYPES.MapAndLabel}>Map and Label (Testing only)</option>
{hasFeatureFlag("FEEDBACK_COMPONENT") && (
<option value={TYPES.Feedback}>Feedback (Testing only)</option>
)}
<option value={TYPES.Feedback}>Feedback</option>
</optgroup>
<optgroup label="Information">
<option value={TYPES.TaskList}>Task List</option>
Expand Down

0 comments on commit aa0484e

Please sign in to comment.