Router done

This commit is contained in:
Edin Dazdarevic
2017-04-09 23:39:38 +02:00
parent 1fdcc24827
commit 4df688ac60
7 changed files with 86 additions and 53 deletions

View File

@@ -46,10 +46,16 @@ export default class Filters extends React.Component {
this.props.dispatch({type: 'UPDATE_ROUTE', action: {
params: {rooms}
}});
this.props.dispatch({type: 'SET_ROOMS', action: {rooms}});
}
onCategoryClick(category) {
this.props.dispatch({type: 'UPDATE_ROUTE', action: {
params: {category}
}});
this.props.dispatch({type: 'SET_CATEGORY', action: {category}});
}