From 0b9943bf6f82f00976e87e145f328fa97563f012 Mon Sep 17 00:00:00 2001 From: Kar Rui Lau Date: Tue, 8 Oct 2024 16:20:47 +0800 Subject: [PATCH] fix: imports are necessary after all --- react/src/Menu/Menu.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/react/src/Menu/Menu.tsx b/react/src/Menu/Menu.tsx index 4c249b8e..3b575663 100644 --- a/react/src/Menu/Menu.tsx +++ b/react/src/Menu/Menu.tsx @@ -1,12 +1,17 @@ import { FC, useMemo } from 'react' import { - ComponentWithAs as _, + ComponentWithAs as _ComponentWithAs, Icon, Menu as ChakraMenu, MenuButton as ChakraMenuButton, MenuDivider as ChakraMenuDivider, + // Importing due to type error + // The inferred type of 'Menu' cannot be named without a reference to '../../node_modules/@chakra-ui/menu/dist/menu-divider'. This is likely not portable. A type annotation is necessary. + MenuDividerProps as _MenuDividerProps, MenuItem as ChakraMenuItem, + MenuItemProps as _MenuItemProps, MenuList as ChakraMenuList, + MenuListProps as _MenuListProps, MenuProps as ChakraMenuProps, ThemingProps, useMultiStyleConfig,