Fakultas Ilmu Komputer UI

navigation.ts 1.33 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
  NutritionistDetail,
13
} from 'scenes';
14
import { FC } from 'react';
15

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

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