diff --git a/frontend/src/components/editor/YorkieIntelligence.tsx b/frontend/src/components/editor/YorkieIntelligence.tsx index f4d6473e..1fcac643 100644 --- a/frontend/src/components/editor/YorkieIntelligence.tsx +++ b/frontend/src/components/editor/YorkieIntelligence.tsx @@ -1,4 +1,4 @@ -import { Card, CardActionArea, Fade, Stack, Typography, useTheme } from "@mui/material"; +import { Card, CardActionArea, Fade, Popper, Stack, Typography, useTheme } from "@mui/material"; import { useEffect, useState } from "react"; import { createPortal } from "react-dom"; import { useDebounce } from "react-use"; @@ -29,6 +29,7 @@ function YorkieIntelligence() { if (!intelligenceHeaderPivot) { setFooterOpen(false); + setDebouncedPivot(null); } }); }, []); @@ -41,32 +42,37 @@ function YorkieIntelligence() { return ( <> - {createPortal( - - - + {({ TransitionProps }) => ( + + - - - Yorkie Intelligence - - - - , - debouncedPivot - )} + + + + Yorkie Intelligence + + + + + )} + {footerOpen && createPortal( ,