forked from 77media/video-flow
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
This commit is contained in:
parent
752cbe9ae5
commit
a10ab3ec1a
@ -16,7 +16,7 @@ export function Portal({ children }: PortalProps) {
|
|||||||
if (!mounted) return null;
|
if (!mounted) return null;
|
||||||
|
|
||||||
return createPortal(
|
return createPortal(
|
||||||
children,
|
children as any,
|
||||||
document.body
|
document.body
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user