From 8db3bead13441a5882d8689dfc6a9f09c82375d9 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Wed, 25 Mar 2026 16:47:22 +0100 Subject: feat: masks, properties refactor, shaders, storage migrations, and more --- apps/web/src/components/ui/context-menu.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'apps/web/src/components/ui/context-menu.tsx') diff --git a/apps/web/src/components/ui/context-menu.tsx b/apps/web/src/components/ui/context-menu.tsx index d8791bdf..ec02de6b 100644 --- a/apps/web/src/components/ui/context-menu.tsx +++ b/apps/web/src/components/ui/context-menu.tsx @@ -10,8 +10,20 @@ import { ArrowRightIcon, CircleIcon, } from "@hugeicons/core-free-icons"; +import { useOverlayOpenChange } from "./use-overlay-open-change"; -const ContextMenu = ContextMenuPrimitive.Root; +function ContextMenu({ + onOpenChange, + ...props +}: React.ComponentProps) { + const handleOpenChange = useOverlayOpenChange({ + source: "context-menu", + onOpenChange, + }); + return ( + + ); +} const ContextMenuTrigger = ContextMenuPrimitive.Trigger; -- cgit v1.3.1