diff --git a/src/components/menu-confirm.jsx b/src/components/menu-confirm.jsx index 40cd146b..1088a21f 100644 --- a/src/components/menu-confirm.jsx +++ b/src/components/menu-confirm.jsx @@ -2,6 +2,8 @@ import { Menu, MenuItem, SubMenu } from '@szhsin/react-menu'; import { cloneElement } from 'preact'; import { useRef } from 'preact/hooks'; +import Menu2 from './menu2'; + function MenuConfirm({ subMenu = false, confirm = true, @@ -20,7 +22,7 @@ function MenuConfirm({ } return children; } - const Parent = subMenu ? SubMenu : Menu; + const Parent = subMenu ? SubMenu : Menu2; const menuRef = useRef(); return (