diff --git a/packages/volto-blocks/src/components/blocks/IconsAndText/ViewItem.tsx b/packages/volto-blocks/src/components/blocks/IconsAndText/ViewItem.tsx index ab98bca..3e5b654 100644 --- a/packages/volto-blocks/src/components/blocks/IconsAndText/ViewItem.tsx +++ b/packages/volto-blocks/src/components/blocks/IconsAndText/ViewItem.tsx @@ -50,9 +50,7 @@ export default function ViewItem({ data }: Props) { {data.headerTextPosition && (
{data.title && ( -

+

{data.headerText}

)} diff --git a/packages/volto-slate-extras/src/components/Widgets/TextEditorWidget/SimpleTextEditorWidget.jsx b/packages/volto-slate-extras/src/components/Widgets/TextEditorWidget/SimpleTextEditorWidget.jsx index d0539f6..afee568 100644 --- a/packages/volto-slate-extras/src/components/Widgets/TextEditorWidget/SimpleTextEditorWidget.jsx +++ b/packages/volto-slate-extras/src/components/Widgets/TextEditorWidget/SimpleTextEditorWidget.jsx @@ -12,7 +12,6 @@ import { defineMessages, useIntl } from 'react-intl'; import { useInView } from 'react-intersection-observer'; import './simpleTextEditorWidget.css'; -import Caret from './Caret'; import config from '@plone/volto/registry'; const messages = defineMessages({ @@ -101,6 +100,7 @@ const SimpleTextEditorWidget = (props) => { fieldRef.current.focus(); setDefaultCaretPosition(); } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [selected]); useEffect(() => { @@ -110,6 +110,7 @@ const SimpleTextEditorWidget = (props) => { fieldRef.current.innerText = _value; if (selected) setDefaultCaretPosition(); } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [value, data]); const selectThis = () => { diff --git a/packages/volto-slate-extras/src/config/Slate/Dropdown/dropdownUtils.js b/packages/volto-slate-extras/src/config/Slate/Dropdown/dropdownUtils.js index 305cabf..4a0f4bf 100644 --- a/packages/volto-slate-extras/src/config/Slate/Dropdown/dropdownUtils.js +++ b/packages/volto-slate-extras/src/config/Slate/Dropdown/dropdownUtils.js @@ -215,7 +215,7 @@ export const isLinkStyleActive = (editor, style) => { } if (found.length) { - for (const [n, p] of found) { + for (const [n] of found) { if (n?.styleName?.indexOf(style) >= 0) { return true; } diff --git a/packages/volto-slate-extras/src/helpers/blocks.js b/packages/volto-slate-extras/src/helpers/blocks.js index 49cd583..4586842 100644 --- a/packages/volto-slate-extras/src/helpers/blocks.js +++ b/packages/volto-slate-extras/src/helpers/blocks.js @@ -50,12 +50,14 @@ export const useHandleDetachedBlockFocus = ( } else if (!selected) { setSelectedField(null); } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [selected]); useEffect(() => { if (!selected && selectedField && onSelectBlock) { onSelectBlock(block); } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [selectedField]); useEffect(() => { @@ -74,6 +76,7 @@ export const useHandleDetachedBlockFocus = ( } }; } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [selected, selectedField]); return { selectedField, setSelectedField };