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:
parent
c3c00d0215
commit
02a514f17c
1 changed files with 1 additions and 4 deletions
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue