mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-23 14:39:58 +03:00
Prettified index.tsx
This commit is contained in:
parent
d05bd5311b
commit
7c15ca9c1c
|
@ -135,7 +135,10 @@ export default class JSONTree extends React.Component<Props, State> {
|
||||||
this.state = getStateFromProps(props);
|
this.state = getStateFromProps(props);
|
||||||
}
|
}
|
||||||
|
|
||||||
static getDerivedStateFromProps(nextProps: Props, state: State): State | null {
|
static getDerivedStateFromProps(
|
||||||
|
nextProps: Props,
|
||||||
|
state: State
|
||||||
|
): State | null {
|
||||||
if (
|
if (
|
||||||
['theme', 'invertTheme'].find(
|
['theme', 'invertTheme'].find(
|
||||||
(k) => nextProps[k as keyof ThemesConf] !== state[k as keyof ThemesConf]
|
(k) => nextProps[k as keyof ThemesConf] !== state[k as keyof ThemesConf]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user