mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-22 22:19:48 +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);
|
||||
}
|
||||
|
||||
static getDerivedStateFromProps(nextProps: Props, state: State): State | null {
|
||||
static getDerivedStateFromProps(
|
||||
nextProps: Props,
|
||||
state: State
|
||||
): State | null {
|
||||
if (
|
||||
['theme', 'invertTheme'].find(
|
||||
(k) => nextProps[k as keyof ThemesConf] !== state[k as keyof ThemesConf]
|
||||
|
|
Loading…
Reference in New Issue
Block a user