Skip to content

Commit 80d8a85

Browse files
committed
deepscan fixes
1 parent dd9324b commit 80d8a85

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/common/RichEditor.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ export const getFormattedText = (editor: any) => {
172172

173173
editor.update(() => {
174174
const rootNode = $getRoot();
175-
const selection = $getSelection();
176175

177176
if (!rootNode) return;
178177

src/components/UI/Form/EmojiInput/Editor.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
BeautifulMentionsMenuProps,
2424
BeautifulMentionsMenuItemProps,
2525
} from 'lexical-beautiful-mentions';
26-
import { handleFormatterEvents, handleFormatting, setDefaultValue } from 'common/RichEditor';
26+
import { handleFormatting, setDefaultValue } from 'common/RichEditor';
2727
import { FormatBold, FormatItalic, StrikethroughS, Code } from '@mui/icons-material';
2828
import { mergeRegister } from '@lexical/utils';
2929

src/components/UI/Form/EmojiInput/EmojiInput.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import { EmojiPicker } from 'components/UI/EmojiPicker/EmojiPicker';
55
import { Editor } from './Editor';
66
import Styles from './EmojiInput.module.css';
77
import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
8-
import { $createTextNode, $getRoot, $getSelection, $isParagraphNode, $isRangeSelection, $isTextNode } from 'lexical';
9-
import { getFormattedText } from 'common/RichEditor';
8+
import { $createTextNode, $getSelection, $isRangeSelection } from 'lexical';
109

1110
export interface EmojiInputProps {
1211
field: { name: string; onChange?: any; value: any; onBlur?: any };

0 commit comments

Comments
 (0)