mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
fix: items issues.
This commit is contained in:
@@ -1,23 +1,13 @@
|
||||
import { connect } from 'react-redux';
|
||||
import t from 'store/types';
|
||||
import { setItemsTableState }from 'store/items/items.actions';
|
||||
|
||||
export const mapDispatchToProps = (dispatch) => ({
|
||||
setItemsTableQuery: (key, value) =>
|
||||
dispatch({
|
||||
type: t.ITEMS_TABLE_QUERY_SET,
|
||||
key,
|
||||
value,
|
||||
}),
|
||||
addItemsTableQueries: (queries) =>
|
||||
dispatch({
|
||||
type: t.ITEMS_TABLE_QUERIES_ADD,
|
||||
payload: { queries },
|
||||
}),
|
||||
setSelectedRowsItems: (selectedRows) =>
|
||||
dispatch({
|
||||
type: t.ITEM_SELECTED_ROWS_SET,
|
||||
payload: { selectedRows },
|
||||
}),
|
||||
setItemsTableState: (queries) => dispatch(setItemsTableState(queries)),
|
||||
// setSelectedRowsItems: (selectedRows) =>
|
||||
// dispatch({
|
||||
// type: t.ITEM_SELECTED_ROWS_SET,
|
||||
// payload: { selectedRows },
|
||||
// }),
|
||||
});
|
||||
|
||||
export default connect(null, mapDispatchToProps);
|
||||
|
||||
Reference in New Issue
Block a user