Skip to content

Commit 857c954

Browse files
committed
INT-3226: fix lint problems
1 parent 8ac357f commit 857c954

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/stories/Editor.stories.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable react-hooks/rules-of-hooks */
12
import { ArgTypes, StoryObj } from '@storybook/react';
23
import React from 'react';
34
import { EditorEvent, Events, Editor as TinyMCEEditor } from 'tinymce';
@@ -81,9 +82,8 @@ export const ControlledInput: StoryObj<typeof Editor> = {
8182
<Editor
8283
apiKey={apiKey}
8384
value={data}
84-
onEditorChange={(e, editor) => {
85-
console.log('Calling setData with', e);
86-
setData(e)
85+
onEditorChange={(e, _editor) => {
86+
setData(e);
8787
}}
8888
tinymceScriptSrc='../../node_modules/tinymce/tinymce.js'
8989
/>
@@ -97,7 +97,6 @@ export const ControlledInput: StoryObj<typeof Editor> = {
9797
}
9898
};
9999

100-
101100
// The editor will enforce a value that is given to it.
102101
// Note that the value must be valid HTML or it will forever correcting it and then rolling back the change.
103102
export const ControlledInputFixed: StoryObj<typeof Editor> = {

0 commit comments

Comments
 (0)