1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-11 18:32:50 +00:00

handling sensors with redux

This commit is contained in:
2016-09-05 18:27:52 +00:00
parent be5e95b6cf
commit 0e8d2e5b2b
15 changed files with 200 additions and 69 deletions

View File

@@ -21,13 +21,13 @@ export default class Post extends React.Component {
componentDidMount() {
const params = this.props.params;
this.props.actions.fetchPost(params.category, params.post);
this.props.appActions.fetchPost(params.category, params.post);
}
render() {
const post = this.props.redux.post;
const fetched = this.props.redux.fetched;
const fetching = this.props.redux.fetching;
const post = this.props.app.post;
const fetched = this.props.app.fetched;
const fetching = this.props.app.fetching;
return (
<div class="Content">