Fakultas Ilmu Komputer UI

navigation.ts 1012 Bytes
Newer Older
1
import * as ROUTES from 'constants/routes';
2
3
4
5
6
7
8
import {
  AllAccessQuestionnaire,
  ChoosePlan,
  ComingSoonPage,
  DietelaQuizResult,
  InitialPage,
} from 'scenes';
9
import { FC } from 'react';
10

11
12
13
14
15
16
17
export interface NavRoute {
  name: string;
  component: FC;
  header?: string;
}

export const navigation: NavRoute[] = [
18
  {
19
20
    name: ROUTES.initial,
    component: InitialPage,
21
  },
22
23
24
25
26
  {
    name: ROUTES.allAccessQuestionnaire,
    component: AllAccessQuestionnaire,
    header: 'Dietela Quiz',
  },
27
28
29
30
31
  {
    name: ROUTES.dietelaQuizResult,
    component: DietelaQuizResult,
    header: 'Dietela Quiz Result',
  },
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
  {
    name: ROUTES.choosePlan,
    component: ChoosePlan,
    header: 'Choose Plan',
  },
  // COMING SOON
  {
    name: ROUTES.cart,
    component: ComingSoonPage,
    header: 'Cart',
  },
  {
    name: ROUTES.programDetail,
    component: ComingSoonPage,
    header: 'Program Dietela',
  },
  {
    name: ROUTES.nutritionistDetail,
    component: ComingSoonPage,
    header: 'Nutrisionis',
  },
53
];