Fakultas Ilmu Komputer UI

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

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

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