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

@@ -10,3 +10,8 @@ export const setCustomersTableState = (queries) => {
};
};
export const resetCustomersTableState = () => {
return {
type: t.CUSTOMERS_TABLE_STATE_RESET,
};
}

View File

@@ -5,4 +5,10 @@ export const setVendorsTableState = (queries) => {
type: t.VENDORS_TABLE_STATE_SET,
payload: { queries },
};
}
export const resetVendorsTableState = () => {
return {
type: t.VENDORS_TABLE_STATE_RESET,
}
}

View File

@@ -1,4 +1,5 @@
export default {
VENDORS_TABLE_STATE_SET: 'VENDORS/TABLE_STATE_SET',
VENDORS_TABLE_STATE_RESET: 'VENDORS/TABLE_STATE_RESET',
VENDORS_SELECTED_ROWS_SET: 'VENDORS/SELECTED_ROWS_SET',
};