mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
27 lines
864 B
TypeScript
27 lines
864 B
TypeScript
import React from 'react'
|
|
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'
|
|
|
|
import About from './pages/About'
|
|
import Details from './pages/Details'
|
|
import Home from './pages/Home'
|
|
import NotFound from './pages/NotFound'
|
|
import Publish from './pages/Publish'
|
|
import Search from './pages/Search'
|
|
import Styleguide from './pages/Styleguide'
|
|
|
|
const Routes = () => (
|
|
<Router>
|
|
<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>
|
|
</Router>
|
|
)
|
|
|
|
export default Routes
|