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/Menu/context.tsx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/components/Menu') diff --git a/src/components/Menu/context.tsx b/src/components/Menu/context.tsx index 076bc8151..1c4a873b3 100644 --- a/src/components/Menu/context.tsx +++ b/src/components/Menu/context.tsx @@ -3,8 +3,10 @@ import React from 'react' import {type ContextType, type ItemContextType} from '#/components/Menu/types' export const Context = React.createContext(null) +Context.displayName = 'MenuContext' export const ItemContext = React.createContext(null) +ItemContext.displayName = 'MenuItemContext' export function useMenuContext() { const context = React.useContext(Context) -- cgit 1.4.1