mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-02-08 07:30:45 +03:00
23 lines
575 B
TypeScript
23 lines
575 B
TypeScript
import { Base16Theme } from 'redux-devtools-themes';
|
|
import { StylingConfig } from 'react-base16-styling';
|
|
|
|
export default function getJsonTreeTheme(
|
|
base16Theme: Base16Theme
|
|
): StylingConfig {
|
|
return {
|
|
extend: base16Theme,
|
|
nestedNode: ({ style }, keyPath, nodeType, expanded) => ({
|
|
style: {
|
|
...style,
|
|
whiteSpace: expanded ? 'inherit' : 'nowrap',
|
|
},
|
|
}),
|
|
nestedNodeItemString: ({ style }, keyPath, nodeType, expanded) => ({
|
|
style: {
|
|
...style,
|
|
display: expanded ? 'none' : 'inline',
|
|
},
|
|
}),
|
|
};
|
|
}
|