feat: toggle banking matching aside

This commit is contained in:
Ahmed Bouhuolia
2024-06-26 19:33:01 +02:00
parent 7a9c7209bc
commit d305c7ad32
14 changed files with 215 additions and 44 deletions

View File

@@ -0,0 +1,15 @@
// @ts-nocheck
import { connect } from 'react-redux';
export const withBanking = (mapState) => {
const mapStateToProps = (state, props) => {
const mapped = {
openMatchingTransactionAside: state.plaid.openMatchingTransactionAside,
selectedUncategorizedTransactionId:
state.plaid.uncategorizedTransactionIdForMatching,
};
return mapState ? mapState(mapped, state, props) : mapped;
};
return connect(mapStateToProps);
};