-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
37 lines (36 loc) · 1.44 KB
/
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
37
import React from 'react'
import ReactDOM from 'react-dom'
import {
BrowserRouter,
Routes,
Route
} from 'react-router-dom'
import Menu from './components/Menu'
import InputForm from './components/InputForm'
import InfoPanel from './components/InfoPanel'
import Home from './components/Home'
import About from './components/About'
import Download from './components/Download'
import Contact from './components/Contact'
import Gene from './components/Gene'
import Network from './components/Network'
ReactDOM.render(
<BrowserRouter>
<div style={{ display: 'flex', flexDirection: 'column', height: '100%' }}>
<Menu />
<div style={{ flex: 1, height: '100%', padding: '10px', display: 'flex', flexFlow: 'row nowrap', justifyContent: 'flex-start' }}>
<InputForm />
<Routes>
<Route path="/" element={<Home />} />
<Route path="/about" element={<About />} />
<Route path="/download" element={<Download />} />
<Route path="/contact" element={<Contact />} />
<Route path="/gene/:query" element={<Gene />} />
<Route path="/network/:gwas/:mlogp/:exactTrait" element={<Network />} />
<Route path="/network/:query" element={<Network />} />
</Routes>
</div>
</div>
</BrowserRouter>,
document.getElementById('reactEntry')
)