diff --git a/src/script/components/RichTextEditor/plugins/ListIndentationPlugin/ListIndentationPlugin.ts b/src/script/components/RichTextEditor/plugins/ListIndentationPlugin/ListIndentationPlugin.ts index 653677ab7d5..90f2d4068e2 100644 --- a/src/script/components/RichTextEditor/plugins/ListIndentationPlugin/ListIndentationPlugin.ts +++ b/src/script/components/RichTextEditor/plugins/ListIndentationPlugin/ListIndentationPlugin.ts @@ -80,7 +80,7 @@ export const registerListItemTabIndentation = (editor: LexicalEditor) => { * This plugin adds the ability to indent list items using the tab key. * It ONLY works when the selection is completely within list items. */ -export const ListItemTabIndentationPlugin = () => { +export const ListItemTabIndentationPlugin = (): null => { const [editor] = useLexicalComposerContext(); useEffect(() => { return registerListItemTabIndentation(editor); diff --git a/src/script/components/RichTextEditor/plugins/ListMaxIndentLevelPlugin/ListMaxIndentLevelPlugin.tsx b/src/script/components/RichTextEditor/plugins/ListMaxIndentLevelPlugin/ListMaxIndentLevelPlugin.tsx index c5a850b185b..e23799e97e3 100644 --- a/src/script/components/RichTextEditor/plugins/ListMaxIndentLevelPlugin/ListMaxIndentLevelPlugin.tsx +++ b/src/script/components/RichTextEditor/plugins/ListMaxIndentLevelPlugin/ListMaxIndentLevelPlugin.tsx @@ -68,7 +68,7 @@ const $shouldPreventIndent = (maxDepth: number): boolean => { return totalDepth > maxDepth; }; -export const ListMaxIndentLevelPlugin = ({maxDepth = 7}: {maxDepth?: number}) => { +export const ListMaxIndentLevelPlugin = ({maxDepth = 7}: {maxDepth?: number}): null => { const [editor] = useLexicalComposerContext(); useEffect(() => {