diff --git a/packages/webapp/src/containers/CashFlow/AccountTransactions/AccountTransactionsActionsBar.tsx b/packages/webapp/src/containers/CashFlow/AccountTransactions/AccountTransactionsActionsBar.tsx index 7ca9abc37..d94b67544 100644 --- a/packages/webapp/src/containers/CashFlow/AccountTransactions/AccountTransactionsActionsBar.tsx +++ b/packages/webapp/src/containers/CashFlow/AccountTransactions/AccountTransactionsActionsBar.tsx @@ -12,6 +12,8 @@ import { PopoverInteractionKind, Position, Intent, + Switch, + Tooltip, } from '@blueprintjs/core'; import { useHistory } from 'react-router-dom'; import { @@ -39,9 +41,9 @@ import { withBanking } from '../withBanking'; import { isEmpty } from 'lodash'; import { useExcludeUncategorizedTransactions, - useUnexcludeUncategorizedTransaction, useUnexcludeUncategorizedTransactions, } from '@/hooks/query/bank-rules'; +import { withBankingActions } from '../withBankingActions'; function AccountTransactionsActionsBar({ // #withDialogActions @@ -56,6 +58,9 @@ function AccountTransactionsActionsBar({ // #withBanking uncategorizedTransationsIdsSelected, excludedTransactionsIdsSelected, + + // #withBankingActions + enableMultipleCategorization, }) { const history = useHistory(); const { accountId } = useAccountTransactionsContext(); @@ -148,6 +153,10 @@ function AccountTransactionsActionsBar({ }); }; + const handleMultipleCategorizingSwitch = (event) => { + enableMultipleCategorization(event.currentTarget.checked); + }; + return ( @@ -201,7 +210,6 @@ function AccountTransactionsActionsBar({ disable={isExcludingLoading} /> )} - {!isEmpty(excludedTransactionsIdsSelected) && (