mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 06:40:31 +00:00
fix: categorize transactions on recognized transactions table
This commit is contained in:
@@ -34,8 +34,8 @@ interface RecognizedTransactionsTableProps extends WithBankingActionsProps {}
|
|||||||
* Renders the recognized account transactions datatable.
|
* Renders the recognized account transactions datatable.
|
||||||
*/
|
*/
|
||||||
function RecognizedTransactionsTableRoot({
|
function RecognizedTransactionsTableRoot({
|
||||||
// #withBanking
|
// #withBankingActions
|
||||||
setUncategorizedTransactionIdForMatching,
|
setTransactionsToCategorizeSelected,
|
||||||
}: RecognizedTransactionsTableProps) {
|
}: RecognizedTransactionsTableProps) {
|
||||||
const { mutateAsync: excludeBankTransaction } =
|
const { mutateAsync: excludeBankTransaction } =
|
||||||
useExcludeUncategorizedTransaction();
|
useExcludeUncategorizedTransaction();
|
||||||
@@ -54,7 +54,7 @@ function RecognizedTransactionsTableRoot({
|
|||||||
|
|
||||||
// Handle cell click.
|
// Handle cell click.
|
||||||
const handleCellClick = (cell, event) => {
|
const handleCellClick = (cell, event) => {
|
||||||
setUncategorizedTransactionIdForMatching(
|
setTransactionsToCategorizeSelected(
|
||||||
cell.row.original.uncategorized_transaction_id,
|
cell.row.original.uncategorized_transaction_id,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -77,7 +77,7 @@ function RecognizedTransactionsTableRoot({
|
|||||||
|
|
||||||
// Handles categorize button click.
|
// Handles categorize button click.
|
||||||
const handleCategorizeClick = (transaction) => {
|
const handleCategorizeClick = (transaction) => {
|
||||||
setUncategorizedTransactionIdForMatching(
|
setTransactionsToCategorizeSelected(
|
||||||
transaction.uncategorized_transaction_id,
|
transaction.uncategorized_transaction_id,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user