mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-03-12 21:48:39 +01:00
21 lines
602 B
JavaScript
21 lines
602 B
JavaScript
import React, { Component } from 'react';
|
|
import { Switch, Route, withRouter } from 'react-router-dom';
|
|
import Boards from '../containers/Boards';
|
|
import OpenBoard from '../containers/OpenBoard';
|
|
import WithBoard from '../containers/WithBoard';
|
|
import BoardPage from './BoardPage';
|
|
|
|
class App extends Component {
|
|
render() {
|
|
return (
|
|
<Switch>
|
|
<Route path="/b/new" component={OpenBoard} />
|
|
<Route path="/b/:hash/:name/" component={withRouter(WithBoard(BoardPage))} />
|
|
<Route path="/" component={Boards} />
|
|
</Switch>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default withRouter(App);
|