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:
parent
7e9b2d544c
commit
d0acbad698
2 changed files with 5 additions and 5 deletions
|
@ -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>
|
||||
);
|
||||
|
|
|
@ -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;
|
Loading…
Add table
Reference in a new issue