Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Jan 18, 2024
1 parent 4a36da0 commit e815d63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
9 changes: 4 additions & 5 deletions packages/desktop-client/src/components/budget/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { type CategoryGroupEntity } from 'loot-core/src/types/models';
import { type LocalPrefs } from 'loot-core/src/types/prefs';

import { styles, theme } from '../../style';
import { type DropPosition } from '../sort';

import { getValidMonthBounds } from './MonthsContext';

Expand Down Expand Up @@ -79,8 +78,8 @@ export function makeAmountFullStyle(value: number) {
}

export function findSortDown(
arr: CategoryGroupEntity[],
pos: DropPosition,
arr: { id: string }[],
pos: 'top' | 'bottom',
targetId: string,
) {
if (pos === 'top') {
Expand All @@ -103,8 +102,8 @@ export function findSortDown(
}

export function findSortUp(
arr: CategoryGroupEntity[],
pos: DropPosition,
arr: { id: string }[],
pos: 'top' | 'bottom',
targetId: string,
) {
if (pos === 'bottom') {
Expand Down
3 changes: 1 addition & 2 deletions packages/desktop-client/src/components/sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { SvgReports, SvgWallet } from '../../icons/v1';
import { SvgCalendar } from '../../icons/v2';
import { type CSSProperties, theme } from '../../style';
import { View } from '../common/View';
import { type OnDropCallback } from '../sort';
import { type Binding } from '../spreadsheet';

import { Accounts } from './Accounts';
Expand Down Expand Up @@ -40,7 +39,7 @@ type SidebarProps = {
onFloat: () => void;
onAddAccount: () => void;
onToggleClosedAccounts: () => void;
onReorder: OnDropCallback;
onReorder: (id: string, dropPos: 'top' | 'bottom', targetId: string) => void;
};

export function Sidebar({
Expand Down

0 comments on commit e815d63

Please sign in to comment.