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-01-23 12:19:28 +01:00
|
|
|
import About from './pages/About'
|
|
|
|
import Details from './pages/Details'
|
2019-01-23 11:15:27 +01:00
|
|
|
import Home from './pages/Home'
|
|
|
|
import NotFound from './pages/NotFound'
|
2019-01-23 14:43:41 +01:00
|
|
|
import Publish from './pages/Publish'
|
2019-01-24 17:52:11 +01:00
|
|
|
import Search from './pages/Search'
|
2019-02-05 14:57:05 +01:00
|
|
|
import Styleguide from './pages/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
|