BIG-88: Reset table state once the table unmount.

This commit is contained in:
a.bouhuolia
2021-09-15 16:31:58 +02:00
parent df0cfcfdae
commit fffc5af980
9 changed files with 33 additions and 31 deletions

View File

@@ -1,10 +1,12 @@
import { connect } from 'react-redux';
import {
setCustomersTableState
setCustomersTableState,
resetCustomersTableState
} from 'store/customers/customers.actions';
export const mapDispatchToProps = (dispatch) => ({
setCustomersTableState: (state) => dispatch(setCustomersTableState(state)),
resetCustomersTableState: () => dispatch(resetCustomersTableState()),
});
export default connect(null, mapDispatchToProps);