Fix lint errors

This commit is contained in:
Joel Jeremy Marquez
2026-01-12 10:00:55 -08:00
parent 5a8b3a0acc
commit 806d54720d
6 changed files with 4 additions and 13 deletions

View File

@@ -508,7 +508,7 @@ export function BudgetCategories({
onToggleVisibilty={group => { onToggleVisibilty={group => {
onSaveGroup({ onSaveGroup({
...group, ...group,
hidden: !!item.value.hidden ? false : true, hidden: item.value.hidden ? false : true,
}); });
}} }}
onApplyBudgetTemplatesInGroup={group => onApplyBudgetTemplatesInGroup={group =>

View File

@@ -22,8 +22,6 @@ import {
separateGroups, separateGroups,
} from './util'; } from './util';
import { type BudgetComponents } from '.';
import { type DropPosition } from '@desktop-client/components/sort'; import { type DropPosition } from '@desktop-client/components/sort';
import { SchedulesProvider } from '@desktop-client/hooks/useCachedSchedules'; import { SchedulesProvider } from '@desktop-client/hooks/useCachedSchedules';
import { useCategories } from '@desktop-client/hooks/useCategories'; import { useCategories } from '@desktop-client/hooks/useCategories';

View File

@@ -122,7 +122,7 @@ export function CategoryBudgetedCell({
category: category.id, category: category.id,
}); });
showUndoNotification({ showUndoNotification({
message: t(`Budget set to last months budget.`), message: t(`Budget set to last month's budget.`),
}); });
setIsMenuOpen(false); setIsMenuOpen(false);
}} }}

View File

@@ -59,7 +59,7 @@ export function BalanceMovementMenu({
<TransferMenu <TransferMenu
categoryId={categoryId} categoryId={categoryId}
initialAmount={catBalance} initialAmount={catBalance}
showToBeBudgeted={true} showToBeBudgeted
onSubmit={(amount, toCategoryId) => { onSubmit={(amount, toCategoryId) => {
onBudgetAction(month, 'transfer-category', { onBudgetAction(month, 'transfer-category', {
amount, amount,

View File

@@ -543,13 +543,6 @@ export function IncomeGroupMonth({ month }: IncomeGroupMonthProps) {
); );
} }
type IncomeCategoryMonthProps = {
category: CategoryEntity;
isLast?: boolean;
month: string;
onShowActivity: (id: CategoryEntity['id'], month: string) => void;
onBudgetAction: (month: string, action: string, arg?: unknown) => void;
};
export function IncomeCategoryMonth({ export function IncomeCategoryMonth({
category, category,
isLast, isLast,

View File

@@ -37,7 +37,7 @@ export function useCategoryMutations() {
notification: { notification: {
type: 'error', type: 'error',
message: t( message: t(
'Category {{name}} already exists in group (it may be hidden)', 'Category "{{name}}" already exists in group (it may be hidden)',
{ name }, { name },
), ),
}, },