mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-09 09:26:22 +00:00
This should be ReactNode instead
This commit is contained in:
parent
0d3c562573
commit
026cf357cc
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@
|
|||
*/
|
||||
|
||||
import { findByPropsLazy, findModuleId, proxyLazyWebpack, wreq } from "@webpack";
|
||||
import type { ComponentType, PropsWithChildren, ReactElement, Ref } from "react";
|
||||
import type { ComponentType, PropsWithChildren, ReactNode, Ref } from "react";
|
||||
|
||||
import { LazyComponent } from "./react";
|
||||
|
||||
|
@ -47,7 +47,7 @@ export interface ModalOptions {
|
|||
onCloseCallback?: (() => void);
|
||||
}
|
||||
|
||||
type RenderFunction = (props: ModalProps) => ReactElement<any>;
|
||||
type RenderFunction = (props: ModalProps) => ReactNode;
|
||||
|
||||
export const Modals = findByPropsLazy("ModalRoot", "ModalCloseButton") as {
|
||||
ModalRoot: ComponentType<PropsWithChildren<{
|
||||
|
|
Loading…
Reference in a new issue