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 {
|
||||
invertTheme,
|
||||
type StylingFunction,
|
||||
type StylingValue,
|
||||
type Theme,
|
||||
} from 'react-base16-styling';
|
||||
import { CircularPropsPassedThroughJSONTree } from './types';
|
||||
|
||||
interface Props extends CircularPropsPassedThroughJSONTree {
|
||||
type Props = Partial<CircularPropsPassedThroughJSONTree> & {
|
||||
data: any;
|
||||
theme?: Theme;
|
||||
invertTheme: boolean;
|
||||
}
|
||||
|
||||
interface State {
|
||||
styling: StylingFunction;
|
||||
}
|
||||
invertTheme?: boolean;
|
||||
};
|
||||
|
||||
const identity = (value: any) => value;
|
||||
const expandRootNode = (
|
||||
|
@ -53,7 +48,7 @@ export function JSONTree(props: Props) {
|
|||
postprocessValue = identity,
|
||||
hideRoot = false,
|
||||
theme,
|
||||
invertTheme: invertThemeProp,
|
||||
invertTheme: invertThemeProp = true,
|
||||
shouldExpandNode = expandRootNode,
|
||||
getItemString = defaultItemString,
|
||||
labelRenderer = defaultLabelRenderer,
|
||||
|
|
Loading…
Reference in New Issue
Block a user