From 852b139ff621fec8892cfe6055ad3079658351f2 Mon Sep 17 00:00:00 2001 From: csandman Date: Mon, 24 Jul 2023 11:47:39 -0400 Subject: [PATCH] Move chakra Menu around the real menu, and fix build error --- src/chakra-components/menu.tsx | 38 ++++++++++++++++------------------ 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/src/chakra-components/menu.tsx b/src/chakra-components/menu.tsx index 29bf490..ba330dc 100644 --- a/src/chakra-components/menu.tsx +++ b/src/chakra-components/menu.tsx @@ -2,10 +2,9 @@ import React from "react"; import type { IconProps } from "@chakra-ui/icon"; import Icon from "@chakra-ui/icon"; import { Box } from "@chakra-ui/layout"; -import { MenuIcon } from "@chakra-ui/menu"; +import { Menu as ChakraMenu, MenuIcon } from "@chakra-ui/menu"; import type { SystemStyleObject } from "@chakra-ui/system"; import { useColorModeValue, useMultiStyleConfig } from "@chakra-ui/system"; -import { Menu as ChakraMenu } from '@chakra-ui/menu' import type { CoercedMenuPlacement, GroupBase, @@ -50,14 +49,16 @@ const Menu = >( : initialSx; return ( - - {children} - + + + {children} + + ); }; @@ -450,16 +451,13 @@ export const Option = < aria-disabled={isDisabled ? true : undefined} > {showCheckIcon && ( - {/* Need to provide Menu Context to MenuIcon */} - - - - - + + + )} {children}