We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
createInjectionKey
1 parent 1bc1cfe commit 09d4935Copy full SHA for 09d4935
src/utils/injectionKeys.ts
src/views/components/Menu/types.ts
@@ -1,5 +1,3 @@
1
-import { createInjectionKey } from '@/utils/injectionKeys'
2
-
3
export interface MenuItem {
4
index: string
5
indexPath: string[]
@@ -30,7 +28,7 @@ export interface MenuInjection {
30
28
handleSubMenuClick: (index: string, indexPath: string[]) => void
31
29
}
32
33
-export const rootMenuInjectionKey = createInjectionKey<MenuInjection>('rootMenu')
+export const rootMenuInjectionKey = Symbol('rootMenu') as InjectionKey<MenuInjection>
34
35
export interface SubMenuProps {
36
uniqueKey: string[]
0 commit comments