From 2b08d07fe3986e90c7c847b7e05b5d25ed97a2a2 Mon Sep 17 00:00:00 2001 From: Mark Wynn-Mackenzie Date: Tue, 3 Jun 2025 18:47:12 +0100 Subject: [PATCH] Remove feature flag: featureFlagName --- src/App.tsx | 10 ++++------ src/feature-management/flags.ts | 6 ++---- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 463b135..f588968 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -19,11 +19,9 @@ function App() { <>

CloudBees feature management React sample application

- {featureFlags.showMessage.isEnabled() && ( -

- {featureFlags.message.getValue()} -

- )} +

+ {featureFlags.message.getValue()} +

@@ -39,4 +37,4 @@ function App() { ) } -export default App +export default App \ No newline at end of file diff --git a/src/feature-management/flags.ts b/src/feature-management/flags.ts index f93673f..3ea8ca0 100644 --- a/src/feature-management/flags.ts +++ b/src/feature-management/flags.ts @@ -1,4 +1,4 @@ -import {Flag, RoxString, RoxNumber} from "rox-browser"; +import {RoxString, RoxNumber} from "rox-browser"; type IFeatureFlags = typeof flags @@ -7,12 +7,10 @@ export interface IFeatureFlagsState extends IFeatureFlags { } export const flags = { - // Boolean - should the message be shown? - showMessage: new Flag(), // String - the message to show. message: new RoxString('This is the default message; try changing some flag values!'), // String (with options) - the color of the message text. fontColor: new RoxString('Black', ['Red', 'Green', 'Blue', 'Black']), // Number (with options) - the size of the message text. fontSize: new RoxNumber(12, [12, 16, 24]), -} +} \ No newline at end of file