mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-08-04 04:10:16 +03:00
* react-base16-styling * Use inline react-base16-styling themes * Fix * Format * Fix * Fixes * Transform more * react-json-tree * Update lock * Remove unnecessary * react-dock * Move to dep * Lock * Fix * Fix * Create tame-eagles-relax.md
22 lines
541 B
TypeScript
22 lines
541 B
TypeScript
import type { Base16Theme, 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',
|
|
},
|
|
}),
|
|
};
|
|
}
|