feat: 🎸 Toggled class list in hjärntorget

This commit is contained in:
Viktor Sarström 2021-11-30 11:31:59 +01:00
parent d2050ca584
commit 33440bcc32
4 changed files with 7 additions and 2 deletions

View File

@ -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}>

View File

@ -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,
}

View File

@ -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,
}

View File

@ -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