fix(react/dialogs): some type errors

This commit is contained in:
Elian Doran
2025-08-06 18:38:52 +03:00
parent edd18b53d0
commit bde270b73f
12 changed files with 75 additions and 28 deletions

View File

@@ -6,6 +6,7 @@ import Modal from "../react/Modal";
import { t } from "../../services/i18n";
import Button from "../react/Button";
import { useRef } from "preact/compat";
import { RawHtmlBlock } from "../react/RawHtml";
interface ShowInfoDialogProps {
message?: string | HTMLElement;
@@ -31,7 +32,7 @@ function ShowInfoDialogComponent({ message, callback, lastElementToFocus }: Show
onClick={() => closeActiveDialog()}
/>}
>
<div className="info-dialog-content" dangerouslySetInnerHTML={{ __html: message ?? "" }}></div>
<RawHtmlBlock className="info-dialog-content" html={message} />
</Modal>);
}