fix: credit & vendor reducer.

This commit is contained in:
elforjani13
2021-12-04 22:16:36 +02:00
parent e1a3f471cb
commit bf99bda616
22 changed files with 142 additions and 139 deletions

View File

@@ -1,12 +1,12 @@
import { connect } from 'react-redux';
import {
getCreditNoteTableStateFactory,
isCreditNoteTableStateChangedFactory,
} from '../../../../store/CreditNotes/creditNotes.selector';
getCreditNotesTableStateFactory,
isCreditNotesTableStateChangedFactory,
} from '../../../../store/CreditNote/creditNote.selector';
export default (mapState) => {
const getCreditNoteTableState = getCreditNoteTableStateFactory();
const isCreditNoteTableChanged = isCreditNoteTableStateChangedFactory();
const getCreditNoteTableState = getCreditNotesTableStateFactory();
const isCreditNoteTableChanged = isCreditNotesTableStateChangedFactory();
const mapStateToProps = (state, props) => {
const mapped = {

View File

@@ -1,13 +1,13 @@
import { connect } from 'react-redux';
import {
setCreditNotesTableState,
resetCreditNotesTableState,
} from '../../../../store/CreditNotes/creditNotes.actions';
setCreditNoteTableState,
resetCreditNoteTableState,
} from '../../../../store/CreditNote/creditNote.actions';
const mapDipatchToProps = (dispatch) => ({
setCreditNotesTableState: (queries) =>
dispatch(setCreditNotesTableState(queries)),
resetCreditNotesTableState: () => dispatch(resetCreditNotesTableState()),
dispatch(setCreditNoteTableState(queries)),
resetCreditNotesTableState: () => dispatch(resetCreditNoteTableState()),
});
export default connect(null, mapDipatchToProps);