mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
fix: credit & vendor reducer.
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user