feat: 🎸 Toggled class list in hjärntorget
This commit is contained in:
parent
d2050ca584
commit
33440bcc32
|
@ -175,6 +175,8 @@ export const Child = () => {
|
|||
const route = useRoute<ChildRouteProps>()
|
||||
const { child, initialRouteName } = route.params
|
||||
const useFoodMenu = useFeature('FOOD_MENU')
|
||||
const useClassList = useFeature('CLASS_LIST')
|
||||
|
||||
const navigation = useNavigation()
|
||||
|
||||
useEffect(() => {
|
||||
|
@ -186,7 +188,7 @@ export const Child = () => {
|
|||
NOTIFICATIONS_SCREEN: true,
|
||||
CALENDER_SCREEN: true,
|
||||
MENU_SCREEN: useFoodMenu,
|
||||
CLASSMATES_SCREEN: true,
|
||||
CLASSMATES_SCREEN: useClassList,
|
||||
}
|
||||
return (
|
||||
<ChildProvider child={child}>
|
||||
|
|
|
@ -3,4 +3,5 @@ import { Features } from '@skolplattformen/api'
|
|||
export const features: Features = {
|
||||
LOGIN_BANK_ID_SAME_DEVICE_WITHOUT_ID: false,
|
||||
FOOD_MENU: false,
|
||||
CLASS_LIST: false,
|
||||
}
|
||||
|
|
|
@ -3,4 +3,5 @@ import { Features } from '@skolplattformen/api'
|
|||
export const features: Features = {
|
||||
LOGIN_BANK_ID_SAME_DEVICE_WITHOUT_ID: true,
|
||||
FOOD_MENU: true,
|
||||
CLASS_LIST: true,
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
export interface Features {
|
||||
LOGIN_BANK_ID_SAME_DEVICE_WITHOUT_ID: boolean
|
||||
FOOD_MENU: boolean
|
||||
FOOD_MENU: boolean,
|
||||
CLASS_LIST: boolean
|
||||
}
|
||||
|
||||
export type FeatureType = keyof Features
|
||||
|
|
Loading…
Reference in New Issue