refactor(react/dialogs): integrate proper closing of modal

This commit is contained in:
Elian Doran
2025-08-10 12:22:11 +03:00
parent b7482f2a6a
commit da1f18c60f
22 changed files with 46 additions and 60 deletions

View File

@@ -1,6 +1,5 @@
import { EventData } from "../../components/app_context";
import ReactBasicWidget from "../react/ReactBasicWidget";
import { closeActiveDialog } from "../../services/dialog";
import Modal from "../react/Modal";
import { t } from "../../services/i18n";
import Button from "../react/Button";
@@ -30,7 +29,7 @@ function ShowInfoDialogComponent() {
footer={<Button
buttonRef={okButtonRef}
text={t("info.okButton")}
onClick={() => closeActiveDialog()}
onClick={() => setShown(false)}
/>}
show={shown}
>