From 6dbbcf77f02f71bc9473c01f0cb9afe870bb276b Mon Sep 17 00:00:00 2001 From: Daniel Lautzenheiser Date: Mon, 27 Feb 2023 10:58:34 -0500 Subject: [PATCH] chore: react-dom createPortal import --- .../components/Editor/EditorPreviewPane/EditorPreviewPane.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/components/Editor/EditorPreviewPane/EditorPreviewPane.tsx b/packages/core/src/components/Editor/EditorPreviewPane/EditorPreviewPane.tsx index 14262069..89d00049 100644 --- a/packages/core/src/components/Editor/EditorPreviewPane/EditorPreviewPane.tsx +++ b/packages/core/src/components/Editor/EditorPreviewPane/EditorPreviewPane.tsx @@ -1,6 +1,6 @@ import { styled } from '@mui/material/styles'; import React, { useCallback, useMemo } from 'react'; -import ReactDOM from 'react-dom'; +import { createPortal } from 'react-dom'; import Frame from 'react-frame-component'; import { translate } from 'react-polyglot'; import { connect } from 'react-redux'; @@ -132,7 +132,7 @@ const PreviewPane = (props: TranslatedProps) => { return null; } - return ReactDOM.createPortal( + return createPortal( {!entry || !entry.data ? null : (