mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
Changes
This commit is contained in:
parent
f8466cea40
commit
5ae11fdced
|
@ -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"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user