From b2c56cbd6dfa9af576f947dd41a0d33376b184d1 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 14 Aug 2025 01:12:31 +0300 Subject: Add displayName to contexts (#8814) --- src/components/ContextMenu/context.tsx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/components/ContextMenu/context.tsx') diff --git a/src/components/ContextMenu/context.tsx b/src/components/ContextMenu/context.tsx index cecb6a18d..d09d3e452 100644 --- a/src/components/ContextMenu/context.tsx +++ b/src/components/ContextMenu/context.tsx @@ -7,10 +7,13 @@ import { } from '#/components/ContextMenu/types' export const Context = React.createContext(null) +Context.displayName = 'ContextMenuContext' export const MenuContext = React.createContext(null) +MenuContext.displayName = 'ContextMenuMenuContext' export const ItemContext = React.createContext(null) +ItemContext.displayName = 'ContextMenuItemContext' export function useContextMenuContext() { const context = React.useContext(Context) -- cgit 1.4.1