mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
Linting
This commit is contained in:
parent
fef81b1618
commit
9a719707db
|
@ -9,7 +9,7 @@ function logError(type) {
|
||||||
'Redux DevTools could not render. You must pass the Redux store ' +
|
'Redux DevTools could not render. You must pass the Redux store ' +
|
||||||
'to <DevTools> either as a "store" prop or by wrapping it in a ' +
|
'to <DevTools> either as a "store" prop or by wrapping it in a ' +
|
||||||
'<Provider store={store}>.'
|
'<Provider store={store}>.'
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
console.error(
|
console.error(
|
||||||
'Redux DevTools could not render. Did you forget to include ' +
|
'Redux DevTools could not render. Did you forget to include ' +
|
||||||
|
@ -78,7 +78,7 @@ export default function createDevTools(children) {
|
||||||
</Provider>
|
</Provider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return(
|
return (
|
||||||
<ReactReduxContext.Consumer>
|
<ReactReduxContext.Consumer>
|
||||||
{props => {
|
{props => {
|
||||||
if (!props || !props.store) {
|
if (!props || !props.store) {
|
||||||
|
@ -89,7 +89,7 @@ export default function createDevTools(children) {
|
||||||
logError('NoLiftedStore');
|
logError('NoLiftedStore');
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Provider store={props.store.liftedStore}>
|
<Provider store={props.store.liftedStore}>
|
||||||
<ConnectedMonitor {...monitorProps} />
|
<ConnectedMonitor {...monitorProps} />
|
||||||
</Provider>
|
</Provider>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user