Router in a good shape
This commit is contained in:
@@ -9,6 +9,14 @@ export default class ListingDetails extends React.Component {
|
||||
}
|
||||
|
||||
onBackClick() {
|
||||
this.props.dispatch({type: 'UPDATE_ROUTE', action: {
|
||||
toDispatch: {
|
||||
type: 'BACK_TO_RESULTS'
|
||||
},
|
||||
params: {
|
||||
listingId: null
|
||||
}
|
||||
}});
|
||||
this.props.dispatch({type: 'BACK_TO_RESULTS'});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user