Skip to content

Commit

Permalink
fix: simplify jodit-react import in richtextcomponent
Browse files Browse the repository at this point in the history
  • Loading branch information
ribeirojose committed Jun 19, 2024
1 parent 2a37079 commit 24da315
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/RichTextEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 24da315

Please sign in to comment.