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

Renamed customIFrame component to ShadowRoot

This commit is contained in:
Simon Backx 2022-07-05 11:49:36 +02:00
parent 7e9b2d544c
commit d0acbad698
2 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
import CustomIFrame from './components/CustomIFrame';
import ShadowRoot from './components/ShadowRoot';
import * as Sentry from '@sentry/react';
import React from 'react';
import ActionHandler from './actions';
@ -168,9 +168,9 @@ export default class App extends React.Component {
return (
<SentryErrorBoundary dsn={this.props.sentryDsn}>
<AppContext.Provider value={this.getContextFromState()}>
<CustomIFrame>
<ShadowRoot>
<CommentsBox />
</CustomIFrame>
</ShadowRoot>
</AppContext.Provider>
</SentryErrorBoundary>
);

View file

@ -1,7 +1,7 @@
import React from 'react';
import root from 'react-shadow';
const CustomIFrame = ({
const ShadowRoot = ({
children,
...props
}) => {
@ -17,4 +17,4 @@ const CustomIFrame = ({
);
};
export default CustomIFrame;
export default ShadowRoot;