From a10ab3ec1a6cd192f1fa9b327cc3c137f59d35e3 Mon Sep 17 00:00:00 2001 From: qikongjian Date: Mon, 25 Aug 2025 01:02:44 +0800 Subject: [PATCH] fix: resolve React ReactNode type compatibility issue in portal.tsx - Fixed TypeScript compilation error in createPortal function - Added type assertion to resolve React type definition conflicts - Ensures successful build process for deployment --- components/portal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/portal.tsx b/components/portal.tsx index aaf2f70..fd5dd91 100644 --- a/components/portal.tsx +++ b/components/portal.tsx @@ -16,7 +16,7 @@ export function Portal({ children }: PortalProps) { if (!mounted) return null; return createPortal( - children, + children as any, document.body ); -} \ No newline at end of file +} \ No newline at end of file