-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathRoutes.js
107 lines (103 loc) · 2.41 KB
/
Routes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import React from "react";
import { Switch, Redirect } from "react-router-dom";
import { RouteWithLayout } from "./components";
import { Main as MainLayout, Minimal as MinimalLayout } from "./layouts";
import {
Dashboard as DashboardView,
Wallet as WalletView,
Savings as SavingsView,
Investments as InvestmentsView,
RealEstate as RealEstateView,
Gold as GoldView,
SignIn as SignInView,
NotFound as NotFoundView,
PortfolioSelect as PortfolioSelectView,
AssetAllocator as AssetAllocatorView
} from "./views";
const Routes = () => {
return (
<Switch>
<Redirect exact from="/" to="/sign-in" />
<RouteWithLayout
component={PortfolioSelectView}
exact
layout={MinimalLayout}
path="/select-portfolio"
/>
<RouteWithLayout
component={AssetAllocatorView}
exact
layout={MinimalLayout}
path="/allocate-assets"
/>
<RouteWithLayout
component={DashboardView}
exact
layout={MainLayout}
path="/dashboard"
/>
<RouteWithLayout
component={SavingsView}
exact
layout={MainLayout}
path="/savings"
/>
<RouteWithLayout
component={WalletView}
exact
layout={MainLayout}
path="/wallet"
/>
<RouteWithLayout
component={InvestmentsView}
exact
layout={MainLayout}
path="/investments"
/>
<RouteWithLayout
component={RealEstateView}
exact
layout={MainLayout}
path="/real-estate"
/>
<RouteWithLayout
component={GoldView}
exact
layout={MainLayout}
path="/gold"
/>
<RouteWithLayout
component={DashboardView}
exact
layout={MainLayout}
path="/account"
/>
<RouteWithLayout
component={DashboardView}
exact
layout={MainLayout}
path="/settings"
/>
<RouteWithLayout
component={DashboardView}
exact
layout={MinimalLayout}
path="/sign-up"
/>
<RouteWithLayout
component={SignInView}
exact
layout={MinimalLayout}
path="/sign-in"
/>
<RouteWithLayout
component={NotFoundView}
exact
layout={MinimalLayout}
path="/not-found"
/>
<Redirect to="/not-found" />
</Switch>
);
};
export default Routes;