diff --git a/client/src/components/indicators/Admin.tsx b/client/src/components/indicators/Admin.tsx index adfed1d..d0bf3ed 100644 --- a/client/src/components/indicators/Admin.tsx +++ b/client/src/components/indicators/Admin.tsx @@ -5,7 +5,7 @@ export default function Admin({ className }: { className?: string }) { return (
diff --git a/client/src/components/indicators/Warning.tsx b/client/src/components/indicators/Warning.tsx index bc57cbf..7e9a7d1 100644 --- a/client/src/components/indicators/Warning.tsx +++ b/client/src/components/indicators/Warning.tsx @@ -10,9 +10,10 @@ export default function Warning({ return (
diff --git a/client/src/components/ui/PopoverWrapper.tsx b/client/src/components/ui/PopoverWrapper.tsx index b0da57a..fca7117 100644 --- a/client/src/components/ui/PopoverWrapper.tsx +++ b/client/src/components/ui/PopoverWrapper.tsx @@ -1,5 +1,4 @@ import { useEffect, useState } from "react"; -import { createPortal } from "react-dom"; import { AnimatePresence, motion } from "motion/react"; import clsx from "clsx"; @@ -88,7 +87,7 @@ function PopoverWrapper({ }; }; - return createPortal( + return ( {isOpened && ( {children}
)} - , - document.body + ); }