Fakultas Ilmu Komputer UI

navigation.ts 1.29 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
  LoginPage,
10
  ProgramDetail,
11
} from 'scenes';
12
import { FC } from 'react';
13

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

export const navigation: NavRoute[] = [
21
  {
22
23
    name: ROUTES.initial,
    component: InitialPage,
24
  },
25
26
27
28
29
  {
    name: ROUTES.allAccessQuestionnaire,
    component: AllAccessQuestionnaire,
    header: 'Dietela Quiz',
  },
30
31
32
33
34
  {
    name: ROUTES.dietelaQuizResult,
    component: DietelaQuizResult,
    header: 'Dietela Quiz Result',
  },
35
36
37
38
39
40
41
42
43
44
45
46
  {
    name: ROUTES.choosePlan,
    component: ChoosePlan,
    header: 'Choose Plan',
  },
  {
    name: ROUTES.cart,
    component: ComingSoonPage,
    header: 'Cart',
  },
  {
    name: ROUTES.programDetail,
47
    component: ProgramDetail,
48
49
50
51
52
53
54
    header: 'Program Dietela',
  },
  {
    name: ROUTES.nutritionistDetail,
    component: ComingSoonPage,
    header: 'Nutrisionis',
  },
55
56
57
58
59
  {
    name: ROUTES.registration,
    component: ManualRegistrationPage,
    header: 'Registrasi',
  },
60
61
62
63
64
65
66
67
68
69
  {
    name: ROUTES.login,
    component: LoginPage,
    header: 'Login',
  },
  {
    name: ROUTES.profile,
    component: ComingSoonPage,
    header: 'Profile',
  },
70
];