Skip to content

Commit 2982003

Browse files
committed
fix: remove unused dispatch from TinyMceWidget component
1 parent 42a5217 commit 2982003

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

  • src/editors/sharedComponents/TinyMceWidget

src/editors/sharedComponents/TinyMceWidget/index.jsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33
import { Editor } from '@tinymce/tinymce-react';
44
import { getConfig } from '@edx/frontend-platform';
5-
import { useDispatch } from 'react-redux';
65

76
import 'tinymce';
87
import 'tinymce/themes/silver';
@@ -55,8 +54,6 @@ const TinyMceWidget = ({
5554
const { imagesRef } = hooks.useImages({ images, editorContentHtml });
5655
const imageSelection = hooks.selectedImage(null);
5756

58-
const dispatch = useDispatch();
59-
6057
return (
6158
<>
6259
{enableImageUpload && (
@@ -93,7 +90,6 @@ const TinyMceWidget = ({
9390
images: imagesRef,
9491
editorContentHtml,
9592
staticRootUrl,
96-
dispatch,
9793
...imageSelection,
9894
...editorConfig,
9995
})

0 commit comments

Comments
 (0)