Router done
This commit is contained in:
@@ -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}});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user