mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
feat: toggle banking matching aside
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import { connect } from 'react-redux';
|
||||
import {
|
||||
closeMatchingTransactionAside,
|
||||
setUncategorizedTransactionIdForMatching,
|
||||
} from '@/store/banking/banking.reducer';
|
||||
|
||||
export interface WithBankingActionsProps {
|
||||
closeMatchingTransactionAside: () => void;
|
||||
setUncategorizedTransactionIdForMatching: (
|
||||
uncategorizedTransactionId: number,
|
||||
) => void;
|
||||
}
|
||||
|
||||
const mapDipatchToProps = (dispatch: any): WithBankingActionsProps => ({
|
||||
closeMatchingTransactionAside: () =>
|
||||
dispatch(closeMatchingTransactionAside()),
|
||||
setUncategorizedTransactionIdForMatching: (
|
||||
uncategorizedTransactionId: number,
|
||||
) =>
|
||||
dispatch(
|
||||
setUncategorizedTransactionIdForMatching(uncategorizedTransactionId),
|
||||
),
|
||||
});
|
||||
|
||||
export const withBankingActions = connect<
|
||||
null,
|
||||
WithBankingActionsProps,
|
||||
{},
|
||||
any
|
||||
>(null, mapDipatchToProps);
|
||||
Reference in New Issue
Block a user