Skip to content

Commit cf3c28d

Browse files
committed
Hide customHints behind a featureFlag for now
1 parent 2482986 commit cf3c28d

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/featureFlags.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ const defaultFlags = {
22
subindividuals: false,
33
matchingEnginePerformanceLogging: false,
44
profileUpdates: false,
5-
writtenViolations: false
5+
writtenViolations: false,
6+
customHints: false,
67
};
78

89
const getFeatureFlag = (flag) => {
@@ -15,6 +16,7 @@ const featureFlags = {
1516
matchingEnginePerformanceLogging: getFeatureFlag('matchingEnginePerformanceLogging'),
1617
profileUpdates: getFeatureFlag('profileUpdates'),
1718
writtenViolations: getFeatureFlag('writtenViolations'),
19+
customHints: getFeatureFlag('customHints'),
1820
};
1921

2022
export const setFeatureFlag = (flag, value) => {

src/ui/screens/benefit-page/BenefitPageScreen.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import BenefitPageApplication from './components/BenefitPageApplication';
88
import BenefitPageRequirements from './components/BenefitPageRequirements';
99
import BenefitPageLocal from './components/BenefitPageLocal';
1010
import BenefitPageCustomHints from "@/ui/screens/benefit-page/components/BenefitPageCustomHints";
11+
import featureFlags from "@/featureFlags";
1112

1213
const BenefitPageScreen = ({
1314
t,
@@ -38,7 +39,7 @@ const BenefitPageScreen = ({
3839
/>
3940
<VBox sx={{ gap: { xs: 4, md: 8 }}}>
4041
{
41-
customHints && customHints.length > 0 && (
42+
featureFlags.customHints && customHints && customHints.length > 0 && (
4243
<BenefitPageCustomHints t={t} isDesktop={isDesktop} customHints={customHints} />
4344
)
4445
}

0 commit comments

Comments
 (0)