Skip to content

Commit

Permalink
Update useEditorOptions.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
santushnath committed Jul 4, 2024
1 parent 8b89d04 commit 5a0068d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/hooks/useEditorOptions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {MailUiEditorProps} from "../MailUiEditor";
import {useMemo} from "react";
// import pkg from "../../package.json";
import pkg from "../../package.json";

const useEditorOptions = (props: MailUiEditorProps, editorId: string) => {
return useMemo(() => {
Expand All @@ -12,10 +12,10 @@ const useEditorOptions = (props: MailUiEditorProps, editorId: string) => {
locale: props.options?.locale,
tools: props.options?.tools,
id: editorId,
// source: {
// name: pkg.name,
// version: pkg.version,
// },
source: {
name: pkg.name,
version: pkg.version,
},
};
return options;
}, [props.options, editorId]);
Expand Down

0 comments on commit 5a0068d

Please sign in to comment.