Skip to content

Commit

Permalink
add feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Jul 23, 2024
1 parent be767b0 commit 5a44654
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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 = ["SEARCH", "OVERRIDE_CONSTRAINTS"] as const;
const AVAILABLE_FEATURE_FLAGS = ["SEARCH", "OVERRIDE_CONSTRAINTS", "TREES"] as const;

type FeatureFlag = (typeof AVAILABLE_FEATURE_FLAGS)[number];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ const NodeTypeSelect: React.FC<{
<option value={TYPES.AddressInput}>Address Input</option>
<option value={TYPES.ContactInput}>Contact Input</option>
<option value={TYPES.List}>List</option>
<option value={TYPES.MapAndLabel}>Map and Label</option>
{hasFeatureFlag("TREES") && (
<option value={TYPES.MapAndLabel}>Map and Label</option>
)}
</optgroup>
<optgroup label="Information">
<option value={TYPES.TaskList}>Task List</option>
Expand Down

0 comments on commit 5a44654

Please sign in to comment.