-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathApp.js
36 lines (35 loc) · 1016 Bytes
/
App.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
import React from "react";
import LoginUI from "./pages/Login/";
import SignUpUI from "./pages/SignUp";
import MtmskHelp from "./pages/Metamask"
import * as ROUTES from "./constants/routes";
import { Route, Switch, useLocation } from "react-router-dom";
import { HashRouter as Router } from 'react-router-dom'
import VerticalTabs from "./pages/Dashboard/index";
import Landing from "../src/pages/Landing";
export default function App() {
const location = useLocation();
return (
<>
<Router basename="/">
<Route exact path="/">
<Landing />
</Route>
<Route exact path={ROUTES.SIGN_IN}>
<LoginUI />
</Route>
<Route exact path={ROUTES.SIGN_UP}>
<SignUpUI />
</Route>
<Route exact path={ROUTES.DASHBOARD}>
<div className="MainContent">
<VerticalTabs />
</div>
</Route>
<Route exact path={ROUTES.HELP}>
<MtmskHelp />
</Route>
</Router>
</>
);
}