From 0294e0ae2ac3b46e1613bd9398f95b21f230d402 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Tue, 28 Jul 2020 14:56:12 -0400 Subject: [PATCH] Change --- packages/redux-devtools/src/createDevTools.js | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/packages/redux-devtools/src/createDevTools.js b/packages/redux-devtools/src/createDevTools.js index 1525429df4..6cab822ce8 100644 --- a/packages/redux-devtools/src/createDevTools.js +++ b/packages/redux-devtools/src/createDevTools.js @@ -1,21 +1,21 @@ -import React, { Children, Component } from 'react'; -import PropTypes from 'prop-types'; -import { connect, Provider, ReactReduxContext } from 'react-redux'; -import instrument from 'redux-devtools-instrument'; +import React, { Children, Component } from "react"; +import PropTypes from "prop-types"; +import { connect, Provider, ReactReduxContext } from "react-redux"; +import instrument from "redux-devtools-instrument"; function logError(type) { /* eslint-disable no-console */ - if (type === 'NoStore') { + if (type === "NoStore") { console.error( - 'Redux DevTools could not render. You must pass the Redux store ' + + "Redux DevTools could not render. You must pass the Redux store " + 'to either as a "store" prop or by wrapping it in a ' + - '.' + "." ); } else { console.error( - 'Redux DevTools could not render. Did you forget to include ' + - 'DevTools.instrument() in your store enhancer chain before ' + - 'using createStore()?' + "Redux DevTools could not render. Did you forget to include " + + "DevTools.instrument() in your store enhancer chain before " + + "using createStore()?" ); } /* eslint-enable no-console */ @@ -47,13 +47,13 @@ export default function createDevTools(children) { if (ReactReduxContext) { if (this.props.store && !this.props.store.liftedStore) { - logError('NoLiftedStore'); + logError("NoLiftedStore"); } return; } if (!props.store && !context.store) { - logError('NoStore'); + logError("NoStore"); return; } @@ -64,7 +64,7 @@ export default function createDevTools(children) { } if (!this.liftedStore) { - logError('NoLiftedStore'); + logError("NoLiftedStore"); } } @@ -85,11 +85,11 @@ export default function createDevTools(children) { {props => { if (!props || !props.store) { - logError('NoStore'); + logError("NoStore"); return null; } if (!props.store.liftedStore) { - logError('NoLiftedStore'); + logError("NoLiftedStore"); return null; } return (