-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.tsx
More file actions
33 lines (31 loc) · 999 Bytes
/
Copy pathindex.tsx
File metadata and controls
33 lines (31 loc) · 999 Bytes
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
import React from 'react'
import { Route } from 'react-router-dom'
import { PoolUpdater, ProtocolUpdater, TokenUpdater } from 'state/info/updaters'
import InfoNav from './components/InfoNav'
import Overview from './Overview'
import Pools from './Pools'
import PoolPage from './Pools/PoolPage'
import Tokens from './Tokens'
import RedirectInvalidToken from './Tokens/redirects'
const Info: React.FC = () => {
return (
<>
<ProtocolUpdater />
<PoolUpdater />
<TokenUpdater />
<InfoNav />
<Route path="/info" exact>
<Overview />
</Route>
<Route path="/info/pools" exact>
<Pools />
</Route>
<Route path="/info/tokens" exact>
<Tokens />
</Route>
<Route exact path={['/info/tokens/:address', '/info/token/:address']} component={RedirectInvalidToken} />
<Route exact path={['/info/pools/:address', '/info/pool/:address', '/info/pair/:address']} component={PoolPage} />
</>
)
}
export default Info