mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
fix root props
This commit is contained in:
parent
03a8af7e8a
commit
ffcbe5d7a8
|
@ -9,21 +9,16 @@ import JSONNode from './JSONNode';
|
||||||
import createStylingFromTheme from './createStylingFromTheme';
|
import createStylingFromTheme from './createStylingFromTheme';
|
||||||
import {
|
import {
|
||||||
invertTheme,
|
invertTheme,
|
||||||
type StylingFunction,
|
|
||||||
type StylingValue,
|
type StylingValue,
|
||||||
type Theme,
|
type Theme,
|
||||||
} from 'react-base16-styling';
|
} from 'react-base16-styling';
|
||||||
import { CircularPropsPassedThroughJSONTree } from './types';
|
import { CircularPropsPassedThroughJSONTree } from './types';
|
||||||
|
|
||||||
interface Props extends CircularPropsPassedThroughJSONTree {
|
type Props = Partial<CircularPropsPassedThroughJSONTree> & {
|
||||||
data: any;
|
data: any;
|
||||||
theme?: Theme;
|
theme?: Theme;
|
||||||
invertTheme: boolean;
|
invertTheme?: boolean;
|
||||||
}
|
};
|
||||||
|
|
||||||
interface State {
|
|
||||||
styling: StylingFunction;
|
|
||||||
}
|
|
||||||
|
|
||||||
const identity = (value: any) => value;
|
const identity = (value: any) => value;
|
||||||
const expandRootNode = (
|
const expandRootNode = (
|
||||||
|
@ -53,7 +48,7 @@ export function JSONTree(props: Props) {
|
||||||
postprocessValue = identity,
|
postprocessValue = identity,
|
||||||
hideRoot = false,
|
hideRoot = false,
|
||||||
theme,
|
theme,
|
||||||
invertTheme: invertThemeProp,
|
invertTheme: invertThemeProp = true,
|
||||||
shouldExpandNode = expandRootNode,
|
shouldExpandNode = expandRootNode,
|
||||||
getItemString = defaultItemString,
|
getItemString = defaultItemString,
|
||||||
labelRenderer = defaultLabelRenderer,
|
labelRenderer = defaultLabelRenderer,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user