From 24da3156d76cf08bd980b047ee955fc9f81d65ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Ribeiro?= Date: Wed, 19 Jun 2024 11:56:29 -0300 Subject: [PATCH] fix: simplify jodit-react import in richtextcomponent --- src/components/RichTextEditor/index.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/RichTextEditor/index.tsx b/src/components/RichTextEditor/index.tsx index e150ac6..96b9982 100644 --- a/src/components/RichTextEditor/index.tsx +++ b/src/components/RichTextEditor/index.tsx @@ -4,10 +4,7 @@ import React, { Suspense, lazy } from "react"; import { Trans, useTranslation } from "react-i18next"; import { useTheme } from "#/components/ThemeToggle/context"; -const JoditEditor = lazy(async () => { - const module = await import("jodit-react"); - return { default: module.default }; -}); +const JoditEditor = lazy(() => import("jodit-react")); const EDITOR_BUTTONS = [ "undo",