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",