From abbfd64c2fe3ffb4aca934e48a26ab861978a3f2 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 | 7 ++++--- 1 file changed, 4 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..5a9b108401 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,10 @@ export const ToolbarSeparator = withCn( ); export const ToolbarButton = withRef< - typeof ToolbarPrimitive.Button, - Omit, 'type'> & { + React.ExoticComponent< + Omit, 'value'> + >, + Omit, 'type' | 'value'> & { buttonType?: 'button' | 'toggle'; pressed?: boolean; tooltip?: ReactNode; @@ -53,7 +55,6 @@ export const ToolbarButton = withRef< isDropdown, children, pressed, - value, tooltip, ...props },