Fix PR feedback

Signed-off-by: soupette <cyril.lpz@gmail.com>
Signed-off-by: Bart Duisters <bartduisters@bartduisters.com>
This commit is contained in:
soupette 2020-01-27 09:55:40 +01:00 committed by Bart Duisters
parent 90ebce4243
commit 821148d4e4

View File

@ -124,12 +124,19 @@ export class Admin extends React.Component {
render() {
const {
global: {
autoReload,
blockApp,
currentEnvironment,
overlayBlockerData,
plugins,
showGlobalAppBlocker,
strapiVersion,
},
disableGlobalOverlayBlocker,
emitEvent,
enableGlobalOverlayBlocker,
intl: { formatMessage },
updatePlugin,
} = this.props;
// We need the admin data in order to make the initializers work
@ -144,14 +151,14 @@ export class Admin extends React.Component {
return (
<GlobalContextProvider
autoReload={this.props.global.autoReload}
emitEvent={this.props.emitEvent}
currentEnvironment={this.props.global.currentEnvironment}
disableGlobalOverlayBlocker={this.props.disableGlobalOverlayBlocker}
enableGlobalOverlayBlocker={this.props.enableGlobalOverlayBlocker}
formatMessage={this.props.intl.formatMessage}
plugins={this.props.global.plugins}
updatePlugin={this.props.updatePlugin}
autoReload={autoReload}
emitEvent={emitEvent}
currentEnvironment={currentEnvironment}
disableGlobalOverlayBlocker={disableGlobalOverlayBlocker}
enableGlobalOverlayBlocker={enableGlobalOverlayBlocker}
formatMessage={formatMessage}
plugins={plugins}
updatePlugin={updatePlugin}
>
<Wrapper>
<LeftMenu version={strapiVersion} plugins={plugins} />