mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-09 14:43:03 -04:00
Fix ImageZoom, Vencord Notifications & ReactErrorDecoder
This commit is contained in:
parent
9a3c66abfd
commit
89ef26e719
5 changed files with 16 additions and 15 deletions
|
@ -18,7 +18,7 @@
|
|||
|
||||
import { Settings } from "@api/Settings";
|
||||
import { Queue } from "@utils/Queue";
|
||||
import { ReactDOM } from "@webpack/common";
|
||||
import { createRoot } from "@webpack/common";
|
||||
import type { ReactNode } from "react";
|
||||
import type { Root } from "react-dom/client";
|
||||
|
||||
|
@ -35,7 +35,7 @@ function getRoot() {
|
|||
const container = document.createElement("div");
|
||||
container.id = "vc-notification-container";
|
||||
document.body.append(container);
|
||||
reactRoot = ReactDOM.createRoot(container);
|
||||
reactRoot = createRoot(container);
|
||||
}
|
||||
return reactRoot;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue