Skip to content

Commit 0119270

Browse files
authored
fix(FilterPicker): tooltip typings (#782)
1 parent 4839932 commit 0119270

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/red-pets-thank.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 FilterPicker's tooltip typings.

src/components/fields/FilterPicker/FilterPicker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ export interface CubeFilterPickerProps<T>
8585
/** Whether to flip the popover placement */
8686
shouldFlip?: boolean;
8787
/** Tooltip for the trigger button (separate from field tooltip) */
88-
triggerTooltip?: string | Omit<CubeTooltipProviderProps, 'children'>;
88+
triggerTooltip?: CubeItemBaseProps['tooltip'];
8989
/** Description for the trigger button (separate from field description) */
90-
triggerDescription?: ReactNode;
90+
triggerDescription?: CubeItemBaseProps['description'];
9191

9292
/**
9393
* Custom renderer for the summary shown inside the trigger when there is a selection.

0 commit comments

Comments
 (0)