mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-26 07:59:48 +03:00
Fix build
This commit is contained in:
parent
ab670598a4
commit
a123b281dd
|
@ -5,15 +5,15 @@ import JSONTree, { StylingValue } from 'react-json-tree';
|
||||||
const getLabelStyle: StylingValue = ({ style }, nodeType, expanded) => ({
|
const getLabelStyle: StylingValue = ({ style }, nodeType, expanded) => ({
|
||||||
style: {
|
style: {
|
||||||
...style,
|
...style,
|
||||||
textTransform: expanded ? 'uppercase' : style.textTransform,
|
textTransform: expanded ? 'uppercase' : style!.textTransform,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const getBoolStyle: StylingValue = ({ style }, nodeType) => ({
|
const getBoolStyle: StylingValue = ({ style }, nodeType) => ({
|
||||||
style: {
|
style: {
|
||||||
...style,
|
...style,
|
||||||
border: nodeType === 'Boolean' ? '1px solid #DD3333' : style.border,
|
border: nodeType === 'Boolean' ? '1px solid #DD3333' : style!.border,
|
||||||
borderRadius: nodeType === 'Boolean' ? 3 : style.borderRadius,
|
borderRadius: nodeType === 'Boolean' ? 3 : style!.borderRadius,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ const getValueLabelStyle: StylingValue = ({ style }, nodeType, keyPath) => ({
|
||||||
color:
|
color:
|
||||||
!Number.isNaN(keyPath[0]) && !(parseInt(keyPath, 10) % 2)
|
!Number.isNaN(keyPath[0]) && !(parseInt(keyPath, 10) % 2)
|
||||||
? '#33F'
|
? '#33F'
|
||||||
: style.color,
|
: style!.color,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user