Prevent Tooltip from displaying when Sidebar toggles between The Home sidebar and the Personal sidebar while closed

This commit is contained in:
Daniel S. Hansen
2025-08-13 12:27:47 -07:00
parent 4afccac3f3
commit 5e2364334f
2 changed files with 10 additions and 10 deletions
@@ -3,7 +3,7 @@ import { chakra, useSlotRecipe } from "@chakra-ui/react";
export default function Tooltip ({tooltipkey, content, sidebarIsOpen, children}) {
const [isVisible, setIsVisible] = useState(!sidebarIsOpen);
const [isVisible, setIsVisible] = useState(false);
const recipe = useSlotRecipe({ key: "sidebar" });
const styles = recipe();
const timeoutId = useRef(null);