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-01-23 14:43:41 +01:00
|
|
|
|
2019-02-08 14:22:40 +01:00
|
|
|
import About from './routes/About'
|
|
|
|
import Details from './routes/Details'
|
|
|
|
import Home from './routes/Home'
|
|
|
|
import NotFound from './routes/NotFound'
|
|
|
|
import Publish from './routes/Publish'
|
|
|
|
import Search from './routes/Search'
|
|
|
|
import Styleguide from './routes/Styleguide'
|
2019-01-18 17:34:40 +01:00
|
|
|
|
|
|
|
const Routes = () => (
|
2019-02-08 13:29:29 +01:00
|
|
|
<Switch>
|
|
|
|
<Route exact component={Home} path="/" />
|
|
|
|
<Route component={Styleguide} path="/styleguide" />
|
|
|
|
<Route component={About} path="/about" />
|
|
|
|
<Route component={Publish} path="/publish" />
|
|
|
|
<Route component={Search} path="/search" />
|
|
|
|
<Route component={Details} path="/asset/:did" />
|
|
|
|
<Route component={NotFound} />
|
|
|
|
</Switch>
|
2019-01-18 17:34:40 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
export default Routes
|