Skip to content

Commit

Permalink
feat: 🎸 Toggled class list in hjärntorget
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorlarsson committed Nov 30, 2021
1 parent d2050ca commit 33440bc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion apps/skolplattformen-sthlm/components/child.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand All @@ -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}>
Expand Down
1 change: 1 addition & 0 deletions libs/api-hjarntorget/lib/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
1 change: 1 addition & 0 deletions libs/api-skolplattformen/lib/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
3 changes: 2 additions & 1 deletion libs/api/lib/features.ts
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 33440bc

Please sign in to comment.