Skip to content

Commit

Permalink
fix: correct typing for toolbar buttons
Browse files Browse the repository at this point in the history
Fixes #510
  • Loading branch information
petyosi committed Jul 2, 2024
1 parent c501db9 commit a3b0a16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/toolbar/components/BoldItalicUnderlineToggles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<BoldItalicUnderlineTogglesProps> = ({ options }) => {
const t = useTranslation()

const showAllButtons = typeof options === 'undefined'
Expand Down Expand Up @@ -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<StrikeThroughSupSubTogglesProps> = ({ options }) => {
const t = useTranslation()
const showAllButtons = typeof options === 'undefined'

Expand Down

0 comments on commit a3b0a16

Please sign in to comment.