Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eric2523 committed Mar 27, 2024
1 parent 9e8b183 commit 0245735
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/RichTextEditor/RichTextEditor.stories.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useRef} from 'react';
import React, { useRef } from 'react';

import Button from 'src/Button';
import { RichTextEditor, RichTextEditorActions } from 'src/RichTextEditor';
Expand Down Expand Up @@ -67,7 +67,7 @@ export const SetContent = () => {

const handleClick = () => {
ref.current.setContent('Oh hey');
}
};

return (
<>
Expand All @@ -78,5 +78,5 @@ export const SetContent = () => {
onChange={() => null}
/>
</>
)
}
);
};
4 changes: 2 additions & 2 deletions src/RichTextEditor/RichTextEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export type RichTextEditorProps = {
onChange: (arg0: string) => void;
}

export type RichTextEditorRef = {
export type RichTextEditorRef = {
setContent: (content: string) => void;
}

Expand Down Expand Up @@ -235,7 +235,7 @@ const RichTextEditor = forwardRef((
</>
)
);
})
});

// eslint-disable-next-line import/no-default-export
export default RichTextEditor;

0 comments on commit 0245735

Please sign in to comment.