From 1f61596e245f6ce7c0bb17e31043d656f845c908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Lafont?= Date: Mon, 8 Jan 2024 23:44:07 +0100 Subject: [PATCH] fix: remove value from ToolbarButton props --- .../src/components/plate-ui/toolbar.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/templates/plate-playground-template/src/components/plate-ui/toolbar.tsx b/templates/plate-playground-template/src/components/plate-ui/toolbar.tsx index 5f25a81e93..017f88cf3c 100644 --- a/templates/plate-playground-template/src/components/plate-ui/toolbar.tsx +++ b/templates/plate-playground-template/src/components/plate-ui/toolbar.tsx @@ -37,8 +37,8 @@ export const ToolbarSeparator = withCn( ); export const ToolbarButton = withRef< - typeof ToolbarPrimitive.Button, - Omit, 'type'> & { + React.ComponentType>, + Omit, 'type' | 'value'> & { buttonType?: 'button' | 'toggle'; pressed?: boolean; tooltip?: ReactNode; @@ -53,7 +53,6 @@ export const ToolbarButton = withRef< isDropdown, children, pressed, - value, tooltip, ...props },