Fakultas Ilmu Komputer UI

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

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

export const navigation: NavRoute[] = [
20
  {
21
22
    name: ROUTES.initial,
    component: InitialPage,
23
  },
24
25
26
27
28
  {
    name: ROUTES.allAccessQuestionnaire,
    component: AllAccessQuestionnaire,
    header: 'Dietela Quiz',
  },
29
30
31
32
33
  {
    name: ROUTES.dietelaQuizResult,
    component: DietelaQuizResult,
    header: 'Dietela Quiz Result',
  },
34
35
36
37
38
39
40
41
42
43
44
45
  {
    name: ROUTES.choosePlan,
    component: ChoosePlan,
    header: 'Choose Plan',
  },
  {
    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
55
56
57
58
  {
    name: ROUTES.registration,
    component: ManualRegistrationPage,
    header: 'Registrasi',
  },
59
];