11import { BlockNoteEditor , BlockSchema } from "@blocknote/core" ;
22import { Toolbar } from "../../SharedComponents/Toolbar/components/Toolbar" ;
3- import { BlockTypeDropdown } from "./DefaultDropdowns/BlockTypeDropdown" ;
4- import { ToggledStyleButton } from "./DefaultButtons/ToggledStyleButton" ;
5- import { TextAlignButton } from "./DefaultButtons/TextAlignButton" ;
63import { ColorStyleButton } from "./DefaultButtons/ColorStyleButton" ;
4+ import { CreateLinkButton } from "./DefaultButtons/CreateLinkButton" ;
75import {
86 NestBlockButton ,
97 UnnestBlockButton ,
108} from "./DefaultButtons/NestBlockButtons" ;
11- import { CreateLinkButton } from "./DefaultButtons/CreateLinkButton" ;
9+ import { TextAlignButton } from "./DefaultButtons/TextAlignButton" ;
10+ import { ToggledStyleButton } from "./DefaultButtons/ToggledStyleButton" ;
11+ import { BlockTypeDropdown } from "./DefaultDropdowns/BlockTypeDropdown" ;
1212
1313export const FormattingToolbar = < BSchema extends BlockSchema > ( props : {
1414 editor : BlockNoteEditor < BSchema > ;
@@ -22,9 +22,9 @@ export const FormattingToolbar = <BSchema extends BlockSchema>(props: {
2222 < ToggledStyleButton editor = { props . editor } toggledStyle = { "underline" } />
2323 < ToggledStyleButton editor = { props . editor } toggledStyle = { "strike" } />
2424
25- < TextAlignButton editor = { props . editor } textAlignment = { "left" } />
26- < TextAlignButton editor = { props . editor } textAlignment = { "center" } />
27- < TextAlignButton editor = { props . editor } textAlignment = { "right" } />
25+ < TextAlignButton editor = { props . editor as any } textAlignment = { "left" } />
26+ < TextAlignButton editor = { props . editor as any } textAlignment = { "center" } />
27+ < TextAlignButton editor = { props . editor as any } textAlignment = { "right" } />
2828
2929 < ColorStyleButton editor = { props . editor } />
3030
0 commit comments