Skip to content

Commit

Permalink
fix: remove value from ToolbarButton props
Browse files Browse the repository at this point in the history
  • Loading branch information
Clément Lafont authored and Clément Lafont committed Jan 8, 2024
1 parent 7988905 commit 1f61596
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export const ToolbarSeparator = withCn(
);

export const ToolbarButton = withRef<
typeof ToolbarPrimitive.Button,
Omit<ComponentPropsWithoutRef<typeof Toggle>, 'type'> & {
React.ComponentType<Omit<typeof ToolbarPrimitive.Button, 'value'>>,
Omit<ComponentPropsWithoutRef<typeof Toggle>, 'type' | 'value'> & {
buttonType?: 'button' | 'toggle';
pressed?: boolean;
tooltip?: ReactNode;
Expand All @@ -53,7 +53,6 @@ export const ToolbarButton = withRef<
isDropdown,
children,
pressed,
value,
tooltip,
...props
},
Expand Down

0 comments on commit 1f61596

Please sign in to comment.