From d75c8668c5872d1a45c9ee2c618461c26eab50e0 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Thu, 14 Nov 2024 16:34:32 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8(frontend)=20blocknote=20cast=20to?= =?UTF-8?q?=20Dictionnary?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .../features/docs/doc-editor/components/BlockNoteEditor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteEditor.tsx b/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteEditor.tsx index 54ec994f..5e878f3e 100644 --- a/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteEditor.tsx +++ b/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteEditor.tsx @@ -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],