This commit is contained in:
Nathan Bierema 2020-08-04 13:05:15 -07:00
parent f8466cea40
commit 5ae11fdced
4 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
{ {
"presets": ["@babel/preset-env", "@babel/preset-react"], "presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-class-properties"] "plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-proposal-export-default-from"]
} }

View File

@ -34,14 +34,15 @@
"@babel/cli": "^7.10.5", "@babel/cli": "^7.10.5",
"@babel/core": "^7.11.0", "@babel/core": "^7.11.0",
"@babel/plugin-proposal-class-properties": "^7.10.4", "@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-proposal-export-default-from": "^7.10.4",
"@babel/preset-env": "^7.11.0", "@babel/preset-env": "^7.11.0",
"@babel/preset-react": "^7.10.4", "@babel/preset-react": "^7.10.4",
"babel-loader": "^8.1.0", "babel-loader": "^8.1.0",
"rimraf": "^2.7.1" "rimraf": "^2.7.1"
}, },
"peerDependencies": { "peerDependencies": {
"react": "^0.14.3 || ^16.2.0", "react": "^16.3.0",
"react-dom": "^0.14.3 || ^16.2.0", "react-dom": "^16.3.0",
"redux-devtools": "^3.0.0" "redux-devtools": "^3.0.0"
}, },
"dependencies": { "dependencies": {

View File

@ -69,7 +69,7 @@ class Chart extends Component {
} }
} }
componentWillReceiveProps(nextProps) { UNSAFE_componentWillReceiveProps(nextProps) {
const { state, select, monitorState } = nextProps; const { state, select, monitorState } = nextProps;
if (monitorState.isVisible !== false) { if (monitorState.isVisible !== false) {

View File

@ -105,6 +105,7 @@ class ChartMonitor extends Component {
return invertTheme ? invertColors(themes[theme]) : themes[theme]; return invertTheme ? invertColors(themes[theme]) : themes[theme];
} }
// eslint-disable-next-line no-console
console.warn('DevTools theme ' + theme + ' not found, defaulting to nicinabox'); console.warn('DevTools theme ' + theme + ' not found, defaulting to nicinabox');
return invertTheme ? invertColors(themes.nicinabox) : themes.nicinabox; return invertTheme ? invertColors(themes.nicinabox) : themes.nicinabox;
} }