-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathapp.tsx
53 lines (44 loc) · 1.75 KB
/
app.tsx
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
import * as React from "react";
import * as ReactDOM from "react-dom";
import { Navbar, Nav, MenuItem, NavItem, NavDropdown,Tab,Tabs } from 'react-bootstrap';
import {
BrowserRouter as Router,
Route,
Switch
} from 'react-router-dom';
import { Header } from './Components/Header';
import { Footer } from './Components/Footer';
import { MainPage } from './Components/MainPage';
import { APITest } from './Components/APITest';
import { HyperChainAPITest } from './Components/HyperChainAPITest';
import {LogIn} from "./Components/LogIn";
import { LogOut } from "./Components/LogOut";
import { MyResume } from "./Components/MyResume";
import { Veryify } from "./Components/Veryify";
import { UserCenter } from "./Components/UserCenter";
import { NebulasTest } from "./Components/NebulasTest";
import { Register } from "./Components/Register";
export class App extends React.Component<{}, {}>{
render() {
return <Router>
<div className="root">
<Header />
<Route exact path="/" component={MainPage} />
<Route exact path="/apitest" component={HyperChainAPITest} />
<Route exact path ="/login" component = {LogIn} />
<Route exact path="/logout" component={LogOut} />
<Route exact path="/myresume" component={MyResume} />
<Route exact path="/verify" component={Veryify} />
<Route exact path="/usercenter" component={UserCenter} />
<Route exact path="/nebulas" component={NebulasTest} />
<Route exact path="/register" component={Register} />
<Footer />
</div>
</Router>
;
}
}
ReactDOM.render(
<App />,
document.getElementById('root')
);