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

24 lines
754 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'
import Home from './pages/Home'
2019-01-23 12:19:28 +01:00
import About from './pages/About'
import Publish from './pages/Publish'
import Details from './pages/Details'
import List from './pages/List'
2019-01-23 11:15:27 +01:00
import NotFound from './pages/NotFound'
const Routes = () => (
<Router>
<Switch>
2019-01-23 11:47:47 +01:00
<Route exact={true} component={Home} path="/" />
2019-01-23 12:19:28 +01:00
<Route component={About} path="/about" />
<Route component={Publish} path="/publish" />
<Route component={List} path="/list" />
<Route component={Details} path="/asset/:did" />
<Route component={NotFound} />
</Switch>
</Router>
)
export default Routes