2018-02-03 12:09:58 +01:00
|
|
|
import React, { Component } from 'react';
|
2018-02-03 12:57:04 +01:00
|
|
|
import { Switch, Route, withRouter } from 'react-router-dom';
|
|
|
|
import Feed from './Feed'
|
2018-02-03 15:07:38 +01:00
|
|
|
import PostEditor from '../containers/PostEditor'
|
|
|
|
import 'semantic-ui-css/semantic.css'
|
2018-02-03 12:09:58 +01:00
|
|
|
|
|
|
|
class App extends Component {
|
|
|
|
render() {
|
|
|
|
return (
|
2018-02-03 12:57:04 +01:00
|
|
|
<Switch>
|
2018-02-03 15:07:38 +01:00
|
|
|
<Route path='/post/new' component={PostEditor} />
|
2018-02-03 12:57:04 +01:00
|
|
|
<Route path='/' component={Feed} />
|
|
|
|
</Switch>
|
2018-02-03 12:09:58 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-02-03 15:07:38 +01:00
|
|
|
export default withRouter(App)
|