2019-01-23 11:15:27 +01:00
|
|
|
import React from 'react'
|
2019-02-08 13:29:29 +01:00
|
|
|
import { Route, Switch } from 'react-router-dom'
|
2019-04-15 15:44:02 +02:00
|
|
|
import withTracker from './hoc/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'
|
2019-01-18 17:34:40 +01:00
|
|
|
|
|
|
|
const Routes = () => (
|
2019-02-08 13:29:29 +01:00
|
|
|
<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)} />
|
2019-02-08 13:29:29 +01:00
|
|
|
</Switch>
|
2019-01-18 17:34:40 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
export default Routes
|