From a3b0a16b18e8e25138d0b76e60ca2febe31cfc03 Mon Sep 17 00:00:00 2001 From: Petyo Ivanov Date: Tue, 2 Jul 2024 09:32:19 +0300 Subject: [PATCH] fix: correct typing for toolbar buttons Fixes #510 --- src/plugins/toolbar/components/BoldItalicUnderlineToggles.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/toolbar/components/BoldItalicUnderlineToggles.tsx b/src/plugins/toolbar/components/BoldItalicUnderlineToggles.tsx index 368b33a9..4b70c1ac 100644 --- a/src/plugins/toolbar/components/BoldItalicUnderlineToggles.tsx +++ b/src/plugins/toolbar/components/BoldItalicUnderlineToggles.tsx @@ -41,7 +41,7 @@ export interface BoldItalicUnderlineTogglesProps { * A toolbar component that lets the user toggle bold, italic and underline formatting. * @group Toolbar Components */ -export const BoldItalicUnderlineToggles: React.FC = ({ options }: BoldItalicUnderlineTogglesProps) => { +export const BoldItalicUnderlineToggles: React.FC = ({ options }) => { const t = useTranslation() const showAllButtons = typeof options === 'undefined' @@ -86,7 +86,7 @@ export interface StrikeThroughSupSubTogglesProps { * A toolbar component that lets the user toggle strikeThrough, superscript and subscript formatting. * @group Toolbar Components */ -export const StrikeThroughSupSubToggles: React.FC = ({ options }: StrikeThroughSupSubTogglesProps) => { +export const StrikeThroughSupSubToggles: React.FC = ({ options }) => { const t = useTranslation() const showAllButtons = typeof options === 'undefined'