feat: wrong type

This commit is contained in:
Nevo David 2025-07-17 17:27:02 +07:00
parent e18a24fcaa
commit 914d0376c4
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ export const HeadingComponent: FC<{
editor: any;
currentValue: string;
}> = ({ editor }) => {
const setHeading = (level: string) => () => {
const setHeading = (level: number) => () => {
editor.commands.toggleHeading({ level })
};