diff options
author | crupest <crupest@outlook.com> | 2023-08-31 23:56:13 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-08-31 23:56:13 +0800 |
commit | 6664fb3506b1ea4af712fa849bd7c761a06c9843 (patch) | |
tree | 1a15efb73c5608d336587390aadea9a9a210cc25 /FrontEnd/src/components/dialog/Dialog.tsx | |
parent | a1f69d978426c6a4cb7e8f3116e087553dbbffd5 (diff) | |
download | timeline-6664fb3506b1ea4af712fa849bd7c761a06c9843.tar.gz timeline-6664fb3506b1ea4af712fa849bd7c761a06c9843.tar.bz2 timeline-6664fb3506b1ea4af712fa849bd7c761a06c9843.zip |
...
Diffstat (limited to 'FrontEnd/src/components/dialog/Dialog.tsx')
-rw-r--r-- | FrontEnd/src/components/dialog/Dialog.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FrontEnd/src/components/dialog/Dialog.tsx b/FrontEnd/src/components/dialog/Dialog.tsx index 85e8ca46..043a8eec 100644 --- a/FrontEnd/src/components/dialog/Dialog.tsx +++ b/FrontEnd/src/components/dialog/Dialog.tsx @@ -2,7 +2,7 @@ import { ReactNode, useRef } from "react"; import ReactDOM from "react-dom"; import classNames from "classnames"; -import { ThemeColor } from "../common"; +import { ThemeColor, UiLogicError } from "../common"; import { useCloseDialog } from "./DialogProvider"; @@ -10,7 +10,7 @@ import "./Dialog.css"; const optionalPortalElement = document.getElementById("portal"); if (optionalPortalElement == null) { - throw new Error("Portal element not found"); + throw new UiLogicError(); } const portalElement = optionalPortalElement; |