Fakultas Ilmu Komputer UI

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

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

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