Skip to content

Commit

Permalink
Update new modals
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Jan 21, 2025
1 parent 269401a commit 127f5f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Trans, useTranslation } from 'react-i18next';

import memoizeOne from 'memoize-one';

import { pushModal } from 'loot-core/client/actions';
import { pushModal } from 'loot-core/client/modals/modalsSlice';
import { getNormalisedString } from 'loot-core/src/shared/normalisation';
import { type Diff, groupById } from 'loot-core/src/shared/util';
import { type PayeeEntity } from 'loot-core/types/models';
Expand Down Expand Up @@ -199,7 +199,7 @@ export const ManagePayees = ({
}

const onChangeCategoryLearning = useCallback(() => {
dispatch(pushModal('payee-category-learning'));
dispatch(pushModal({ modal: { name: 'payee-category-learning' } }));
}, [dispatch]);

const buttonsDisabled = selected.items.size === 0;
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/schedules/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function Schedules() {
}, [dispatch]);

const onChangeUpcomingLength = useCallback(() => {
dispatch(pushModal('schedules-upcoming-length'));
dispatch(pushModal({ modal: { name: 'schedules-upcoming-length' } }));
}, [dispatch]);

const onAction = useCallback(
Expand Down

0 comments on commit 127f5f9

Please sign in to comment.