From f18bce60946a970199be8f5d4144033d355f81ce Mon Sep 17 00:00:00 2001 From: Robert Dyer Date: Wed, 3 Jul 2024 20:13:57 -0500 Subject: [PATCH] Fix warning modal not showing a second time. (#2956) * Fix warning modal not showing a second time. * add release note --- packages/desktop-client/src/components/Modals.tsx | 1 + .../src/components/modals/ConfirmTransactionEdit.tsx | 10 +++++++++- .../src/components/transactions/TransactionsTable.jsx | 5 ++++- packages/loot-core/src/client/state-types/modals.d.ts | 1 + upcoming-release-notes/2956.md | 6 ++++++ 5 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 upcoming-release-notes/2956.md diff --git a/packages/desktop-client/src/components/Modals.tsx b/packages/desktop-client/src/components/Modals.tsx index 81f48f391e5..ac5b894b2c5 100644 --- a/packages/desktop-client/src/components/Modals.tsx +++ b/packages/desktop-client/src/components/Modals.tsx @@ -173,6 +173,7 @@ export function Modals() { diff --git a/packages/desktop-client/src/components/modals/ConfirmTransactionEdit.tsx b/packages/desktop-client/src/components/modals/ConfirmTransactionEdit.tsx index 6fb4c800775..7ad0ff097fb 100644 --- a/packages/desktop-client/src/components/modals/ConfirmTransactionEdit.tsx +++ b/packages/desktop-client/src/components/modals/ConfirmTransactionEdit.tsx @@ -9,12 +9,14 @@ import { type CommonModalProps } from '../Modals'; type ConfirmTransactionEditProps = { modalProps: Partial; + onCancel?: () => void; onConfirm: () => void; confirmReason: string; }; export function ConfirmTransactionEdit({ modalProps, + onCancel, onConfirm, confirmReason, }: ConfirmTransactionEditProps) { @@ -71,7 +73,13 @@ export function ConfirmTransactionEdit({ justifyContent: 'flex-end', }} > -