Skip to content
Snippets Groups Projects

Adding feature flag functionality

Merged Tore.Brede requested to merge feature_flag_frontend into master
All threads resolved!
5 files
+ 76
21
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 12
0
 
import { createContext, useContext } from 'react'
 
 
export interface IFeatureContext {
 
// Controls whether the contact person and comment optional fields be shown in the register new guest wizard
 
displayContactAndComment: boolean
 
}
 
 
export const FeatureContext = createContext<IFeatureContext>({
 
+1
displayContactAndComment: true,
 
})
 
 
export const useFeatureContext = () => useContext(FeatureContext)
Loading