🚨(frontend) blocknote cast to Dictionnary

The last Blocknote upgrade (0.19.0) gives us
a warning with the dictionnary typing.
We cast it to the correct type to remove the warning.
This commit is contained in:
Anthony LC
2024-11-14 16:34:32 +01:00
committed by Anthony LC
parent f266232b5a
commit d75c8668c5

View File

@@ -1,4 +1,4 @@
import { locales } from '@blocknote/core';
import { Dictionary, locales } from '@blocknote/core';
import '@blocknote/core/fonts/inter.css';
import { BlockNoteView } from '@blocknote/mantine';
import '@blocknote/mantine/style.css';
@@ -124,7 +124,7 @@ export const BlockNoteEditor = ({
color: randomColor(),
},
},
dictionary: locales[lang as keyof typeof locales],
dictionary: locales[lang as keyof typeof locales] as Dictionary,
uploadFile,
},
[lang, provider, uploadFile, userData?.email, userData?.full_name],