Skip to content

Commit c7fdfb4

Browse files
authored
fix(Menu): children type (#664)
1 parent 697b1db commit c7fdfb4

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.changeset/chatty-grapes-give.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cube-dev/ui-kit": patch
3+
---
4+
5+
Fix Menu children typing.

src/components/pickers/Menu/Menu.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111

1212
import {
1313
BaseProps,
14+
BasePropsWithoutChildren,
1415
CONTAINER_STYLES,
1516
ContainerStyleProps,
1617
extractStyles,
@@ -26,7 +27,7 @@ import { MenuSection } from './MenuSection';
2627
import { StyledMenu, StyledMenuHeader } from './styled';
2728

2829
export interface CubeMenuProps<T>
29-
extends BaseProps,
30+
extends BasePropsWithoutChildren,
3031
ContainerStyleProps,
3132
AriaMenuProps<T> {
3233
selectionIcon?: MenuSelectionType;

src/icons/Icon.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export interface CubeIconProps
5454
size?: Styles['fontSize'];
5555
stroke?: number;
5656
children?: ReactElement;
57+
title?: string;
5758
}
5859

5960
export const Icon = memo(

0 commit comments

Comments
 (0)