This commit is contained in:
Ahmed Bouhuolia
2025-11-12 21:34:30 +02:00
parent a0bc9db9a6
commit 2383091b6e
29 changed files with 279 additions and 78 deletions

View File

@@ -1,6 +1,7 @@
// @ts-nocheck
import { connect } from 'react-redux';
import {
getReceiptsSelectedRowsFactory,
getReceiptsTableStateFactory,
receiptsTableStateChangedFactory,
} from '@/store/receipts/receipts.selector';
@@ -8,11 +9,13 @@ import {
export default (mapState) => {
const getReceiptsTableState = getReceiptsTableStateFactory();
const receiptsTableStateChanged = receiptsTableStateChangedFactory();
const getSelectedRows = getReceiptsSelectedRowsFactory();
const mapStateToProps = (state, props) => {
const mapped = {
receiptTableState: getReceiptsTableState(state, props),
receiptsTableStateChanged: receiptsTableStateChanged(state, props),
receiptSelectedRows: getSelectedRows(state, props),
};
return mapState ? mapState(mapped, state, props) : mapped;
};