1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00
commons/client/src/Routes.tsx

30 lines
1.1 KiB
TypeScript
Raw Normal View History

2019-01-23 11:15:27 +01:00
import React from 'react'
import { Route, Switch } from 'react-router-dom'
2019-04-08 11:35:10 +02:00
import withTracker from './withTracker'
2019-01-23 14:43:41 +01:00
2019-02-08 14:22:40 +01:00
import About from './routes/About'
2019-02-14 13:33:21 +01:00
import Details from './routes/Details/'
2019-02-08 14:22:40 +01:00
import Home from './routes/Home'
import NotFound from './routes/NotFound'
2019-02-12 14:07:22 +01:00
import Publish from './routes/Publish/'
2019-02-08 14:22:40 +01:00
import Search from './routes/Search'
2019-02-28 17:12:48 +01:00
import Faucet from './routes/Faucet'
2019-03-25 16:42:37 +01:00
import History from './routes/History'
2019-02-08 14:22:40 +01:00
import Styleguide from './routes/Styleguide'
const Routes = () => (
<Switch>
2019-04-08 11:35:10 +02:00
<Route exact component={withTracker(Home)} path="/" />
<Route component={withTracker(Styleguide)} path="/styleguide" />
<Route component={withTracker(About)} path="/about" />
<Route component={withTracker(Publish)} path="/publish" />
<Route component={withTracker(Search)} path="/search" />
<Route component={withTracker(Details)} path="/asset/:did" />
<Route component={withTracker(Faucet)} path="/faucet" />
<Route component={withTracker(History)} path="/history" />
<Route component={withTracker(NotFound)} />
</Switch>
)
export default Routes