From ec5925201097057c9db6e73a5046cc28da00a305 Mon Sep 17 00:00:00 2001 From: arcticfly <41524992+arcticfly@users.noreply.github.com> Date: Wed, 23 Aug 2023 23:48:53 -0700 Subject: [PATCH] Wrap in Portal (#191) --- app/src/components/nav/ProjectMenu.tsx | 115 +++++++++++++------------ 1 file changed, 59 insertions(+), 56 deletions(-) diff --git a/app/src/components/nav/ProjectMenu.tsx b/app/src/components/nav/ProjectMenu.tsx index f4441d6..b1efd5d 100644 --- a/app/src/components/nav/ProjectMenu.tsx +++ b/app/src/components/nav/ProjectMenu.tsx @@ -14,6 +14,7 @@ import { Link as ChakraLink, Image, Box, + Portal, } from "@chakra-ui/react"; import { useEffect } from "react"; import Link from "next/link"; @@ -109,64 +110,66 @@ export default function ProjectMenu() { - - - - {user?.user.email} - - - - Your Projects - - - {projects?.map((proj) => ( - - ))} - - Add project - - - + + + + + {user?.user.email} + + + + Your Projects + + + {projects?.map((proj) => ( + + ))} + + Add project + + + - - - { - signOut().catch(console.error); - }} - _hover={{ bgColor: "gray.200", textDecoration: "none" }} - w="full" - py={2} - px={2} - borderRadius={4} - > - Sign out - + + + { + signOut().catch(console.error); + }} + _hover={{ bgColor: "gray.200", textDecoration: "none" }} + w="full" + py={2} + px={2} + borderRadius={4} + > + Sign out + + - - + + );