mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 20:44:32 -05:00
* fix incorrect hook usage in #3277 * release note
This commit is contained in:
@@ -6,7 +6,7 @@ import React, {
|
||||
useMemo,
|
||||
type ReactElement,
|
||||
} from 'react';
|
||||
import { Trans, useTranslation } from 'react-i18next';
|
||||
import { Trans } from 'react-i18next';
|
||||
import { useSelector } from 'react-redux';
|
||||
import { Navigate, useParams, useLocation } from 'react-router-dom';
|
||||
|
||||
@@ -597,8 +597,6 @@ class AccountInternal extends PureComponent<
|
||||
};
|
||||
|
||||
onImport = async () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const accountId = this.props.accountId;
|
||||
const account = this.props.accounts.find(acct => acct.id === accountId);
|
||||
const categories = await this.props.getCategories();
|
||||
@@ -629,8 +627,6 @@ class AccountInternal extends PureComponent<
|
||||
};
|
||||
|
||||
onExport = async (accountName: string) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const exportedTransactions = await send('transactions-export-query', {
|
||||
query: this.currentQuery.serialize(),
|
||||
});
|
||||
@@ -951,8 +947,6 @@ class AccountInternal extends PureComponent<
|
||||
};
|
||||
|
||||
onCreateReconciliationTransaction = async (diff: number) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
// Create a new reconciliation transaction
|
||||
const reconciliationTransactions = realizeTempTransactions([
|
||||
{
|
||||
@@ -979,8 +973,6 @@ class AccountInternal extends PureComponent<
|
||||
};
|
||||
|
||||
onShowTransactions = async (ids: string[]) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
this.onApplyFilter({
|
||||
customName: t('Selected transactions'),
|
||||
queryFilter: { id: { $oneof: ids } },
|
||||
|
||||
6
upcoming-release-notes/3356.md
Normal file
6
upcoming-release-notes/3356.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [matt-fidd]
|
||||
---
|
||||
|
||||
Fix incorrect hook usage in #3277
|
||||
Reference in New Issue
Block a user