Skip to content

Commit ff05d2d

Browse files
fix: propTypes validation warning on Toast content string
1 parent bb051e6 commit ff05d2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/editors/containers/TextEditor/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
Spinner,
77
Toast,
88
} from '@openedx/paragon';
9-
import { FormattedMessage, injectIntl, intlShape } from '@edx/frontend-platform/i18n';
9+
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
1010

1111
import { actions, selectors } from '../../data/redux';
1212
import { RequestKeys } from '../../data/constants/requests';
@@ -78,7 +78,7 @@ const TextEditor = ({
7878
>
7979
<div className="editor-body h-75 overflow-auto">
8080
<Toast show={blockFailed} onClose={hooks.nullMethod}>
81-
<FormattedMessage {...messages.couldNotLoadTextContext} />
81+
{ intl.formatMessage(messages.couldNotLoadTextContext) }
8282
</Toast>
8383

8484
{(!blockFinished)

0 commit comments

Comments
 (0)