mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
18 lines
495 B
TypeScript
18 lines
495 B
TypeScript
import React from 'react'
|
|
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'
|
|
import Home from './pages/Home'
|
|
import NotFound from './pages/NotFound'
|
|
import Styleguide from './pages/Styleguide'
|
|
|
|
const Routes = () => (
|
|
<Router>
|
|
<Switch>
|
|
<Route exact={true} component={Home} path="/" />
|
|
<Route component={Styleguide} path="/styleguide" />
|
|
<Route component={NotFound} />
|
|
</Switch>
|
|
</Router>
|
|
)
|
|
|
|
export default Routes
|