This repository was archived by the owner on May 14, 2020. It is now read-only.
File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,9 @@ export default class JSONValueNode extends React.Component {
45
45
{ this . props . labelRenderer ( this . props . keyName ) } :
46
46
</ label >
47
47
< span style = { {
48
- color : this . props . theme . base0B ,
49
- ...this . props . styles . getValueStyle ( 'String' , true )
50
- } } > " { this . props . valueRenderer ( this . props . valueGetter ( this . props . value ) ) } " </ span >
48
+ color : this . props . valueColor ,
49
+ ...this . props . styles . getValueStyle ( this . props . nodeType , true )
50
+ } } > { this . props . valueRenderer ( this . props . valueGetter ( this . props . value ) ) } </ span >
51
51
</ li >
52
52
) ;
53
53
}
Original file line number Diff line number Diff line change @@ -47,19 +47,19 @@ export default function({
47
47
case 'Iterable' :
48
48
return < JSONIterableNode { ...nestedNodeProps } /> ;
49
49
case 'String' :
50
- return < JSONValueNode { ...simpleNodeProps } /> ;
50
+ return < JSONValueNode { ...simpleNodeProps } valueColor = { theme . base0B } valueGetter = { raw => `" ${ raw } "` } /> ;
51
51
case 'Number' :
52
- return < JSONValueNode { ...simpleNodeProps } /> ;
52
+ return < JSONValueNode { ...simpleNodeProps } valueColor = { theme . base09 } /> ;
53
53
case 'Boolean' :
54
- return < JSONValueNode { ...simpleNodeProps } valueGetter = { raw => raw ? 'true' : 'false' } /> ;
54
+ return < JSONValueNode { ...simpleNodeProps } valueColor = { theme . base09 } valueGetter = { raw => raw ? 'true' : 'false' } /> ;
55
55
case 'Date' :
56
- return < JSONValueNode { ...simpleNodeProps } valueGetter = { raw => raw . toISOString ( ) } /> ;
56
+ return < JSONValueNode { ...simpleNodeProps } valueColor = { theme . base0B } valueGetter = { raw => raw . toISOString ( ) } /> ;
57
57
case 'Null' :
58
- return < JSONValueNode { ...simpleNodeProps } valueGetter = { ( ) => null } /> ;
58
+ return < JSONValueNode { ...simpleNodeProps } valueColor = { theme . base08 } valueGetter = { ( ) => ' null' } /> ;
59
59
case 'Undefined' :
60
- return < JSONValueNode { ...simpleNodeProps } valueGetter = { ( ) => undefined } /> ;
60
+ return < JSONValueNode { ...simpleNodeProps } valueColor = { theme . base08 } valueGetter = { ( ) => ' undefined' } /> ;
61
61
case 'Function' :
62
- return < JSONValueNode { ...simpleNodeProps } valueGetter = { raw => raw . toString ( ) } /> ;
62
+ return < JSONValueNode { ...simpleNodeProps } valueColor = { theme . base08 } valueGetter = { raw => raw . toString ( ) } /> ;
63
63
default :
64
64
return false ;
65
65
}
You can’t perform that action at this time.
0 commit comments