File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
89const 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
2022export const setFeatureFlag = ( flag , value ) => {
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import BenefitPageApplication from './components/BenefitPageApplication';
88import BenefitPageRequirements from './components/BenefitPageRequirements' ;
99import BenefitPageLocal from './components/BenefitPageLocal' ;
1010import BenefitPageCustomHints from "@/ui/screens/benefit-page/components/BenefitPageCustomHints" ;
11+ import featureFlags from "@/featureFlags" ;
1112
1213const 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 }
You can’t perform that action at this time.
0 commit comments