0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Removed style option from Frame component

This commit is contained in:
Simon Backx 2022-08-31 14:36:26 +02:00
parent c3c00d0215
commit 02a514f17c

View file

@ -5,7 +5,6 @@ import IFrame from './IFrame';
const Frame = ({
children,
type,
style,
...props
}) => {
const {stylesUrl} = useContext(AppContext);
@ -63,11 +62,9 @@ const Frame = ({
</>
);
const mergedStyle = {...iframeStyle, ...style};
// For now we're using <NewFrame> because using a functional component with portal caused some weird issues with modals
return (
<IFrame {...props} head={head} style={mergedStyle} onResize={type === 'dynamic' ? onResize : null}>
<IFrame {...props} head={head} style={iframeStyle} onResize={type === 'dynamic' ? onResize : null}>
{cssLoaded && children}
</IFrame>
);