diff --git a/components/Buttons.tsx b/components/Buttons.tsx index d86984b2..9dc29742 100644 --- a/components/Buttons.tsx +++ b/components/Buttons.tsx @@ -68,7 +68,7 @@ export const ButtonSecondary = forwardRef< } = props; return ( ); }); diff --git a/components/HomeButton.tsx b/components/HomeButton.tsx index fb0bc650..a90f433c 100644 --- a/components/HomeButton.tsx +++ b/components/HomeButton.tsx @@ -42,7 +42,7 @@ const AddToHomeButton = (props: {}) => { ) return null; return ( - + icon={} + label="Add to Home" + /> ); }; diff --git a/components/Layout.tsx b/components/Layout.tsx index 111a7422..786f556b 100644 --- a/components/Layout.tsx +++ b/components/Layout.tsx @@ -2,6 +2,8 @@ import * as DropdownMenu from "@radix-ui/react-dropdown-menu"; import { theme } from "tailwind.config"; import { NestedCardThemeProvider } from "./ThemeManager/ThemeProvider"; import { PopoverArrow } from "./Icons/PopoverArrow"; +import { PopoverOpenContext } from "./Popover"; +import { useState } from "react"; export const Separator = (props: { classname?: string }) => { return ( @@ -20,8 +22,15 @@ export const Menu = (props: { onOpenChange?: (o: boolean) => void; asChild?: boolean; }) => { + let [open, setOpen] = useState(props.open || false); return ( - + { + setOpen(o); + props.onOpenChange?.(o); + }} + open={props.open} + > {props.trigger}