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

27 lines
864 B
TypeScript
Raw Normal View History

2019-01-23 11:15:27 +01:00
import React from 'react'
import { BrowserRouter as Router, 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'
const Routes = () => (
<Router>
<Switch>
2019-02-07 11:28:04 +01:00
<Route exact component={Home} path="/" />
<Route component={Styleguide} path="/styleguide" />
2019-01-23 12:19:28 +01:00
<Route component={About} path="/about" />
<Route component={Publish} path="/publish" />
2019-01-23 17:39:34 +01:00
<Route component={Search} path="/search" />
2019-01-23 12:19:28 +01:00
<Route component={Details} path="/asset/:did" />
<Route component={NotFound} />
</Switch>
</Router>
)
export default Routes