From e28ca260141cad1b26c06dfe0c29d8a634086b66 Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Tue, 13 May 2025 21:53:02 -0400 Subject: [PATCH] fix share button, home button, and secondary button --- components/Buttons.tsx | 9 +++++---- components/HomeButton.tsx | 8 ++++---- components/Layout.tsx | 11 ++++++++++- 3 files changed, 19 insertions(+), 9 deletions(-) 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} -- 2.51.2