Skip to content

Commit

Permalink
typecheck & lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dkhalife committed Dec 11, 2024
1 parent efdc398 commit f0e7426
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { MobilePageHeader, Page } from '../../Page';
import { MobileBackButton } from '../MobileBackButton';
import { AddTransactionButton } from '../transactions/AddTransactionButton';
import { TransactionListWithBalances } from '../transactions/TransactionListWithBalances';

Check warning on line 22 in packages/desktop-client/src/components/mobile/budget/CategoryTransactions.tsx

View workflow job for this annotation

GitHub Actions / lint

There should be at least one empty line between import groups
import { CategoryEntity } from 'loot-core/types/models';
import { CategoryEntity, TransactionEntity } from 'loot-core/types/models';

Check warning on line 23 in packages/desktop-client/src/components/mobile/budget/CategoryTransactions.tsx

View workflow job for this annotation

GitHub Actions / lint

All imports in the declaration are only used as types. Use `import type`

Check warning on line 23 in packages/desktop-client/src/components/mobile/budget/CategoryTransactions.tsx

View workflow job for this annotation

GitHub Actions / lint

`loot-core/types/models` import should occur before import of `../../../hooks/useDateFormat`

type CategoryTransactionsProps = {
category: CategoryEntity;
Expand Down Expand Up @@ -80,7 +80,7 @@ export function CategoryTransactions({ category, month }: CategoryTransactionsPr
});

const onOpenTransaction = useCallback(
transaction => {
(transaction: TransactionEntity) => {
// details of how the native app used to handle preview transactions here can be found at commit 05e58279
if (!isPreviewId(transaction.id)) {
navigate(`/transactions/${transaction.id}`);
Expand Down

0 comments on commit f0e7426

Please sign in to comment.