diff --git a/src/react/JSONTree/JSONArrayNode.js b/src/react/JSONTree/JSONArrayNode.js index d0b3c512..1d92a667 100644 --- a/src/react/JSONTree/JSONArrayNode.js +++ b/src/react/JSONTree/JSONArrayNode.js @@ -89,20 +89,14 @@ export default class JSONArrayNode extends React.Component { listStyle: 'none', display: (this.state.expanded) ? 'block' : 'none' }; - let backgroundColor = 'transparent'; let containerStyle; let spanStyle = { ...styles.span, color: this.props.theme.base0E }; - if (typeof this.props.previousData !== 'undefined' && this.props.previousData === this.data) { - const bgColor = hexToRgb(this.props.theme.base08); - backgroundColor = `rgba(${bgColor.r}, ${bgColor.g}, ${bgColor.b}, 0.04)`; - } containerStyle = { ...styles.base, - ...styles.parentNode, - backgroundColor + ...styles.parentNode } if (this.state.expanded) { diff --git a/src/react/JSONTree/JSONObjectNode.js b/src/react/JSONTree/JSONObjectNode.js index 56b53cce..f75544ff 100644 --- a/src/react/JSONTree/JSONObjectNode.js +++ b/src/react/JSONTree/JSONObjectNode.js @@ -92,20 +92,14 @@ export default class JSONObjectNode extends React.Component { listStyle: 'none', display: (this.state.expanded) ? 'block' : 'none' }; - let backgroundColor = 'transparent'; let containerStyle; let spanStyle = { ...styles.span, color: this.props.theme.base0B }; - if (typeof this.props.previousData !== 'undefined' && !shallowEqual(this.props.data, this.props.previousData || {})) { - const bgColor = hexToRgb(this.props.theme.base08); - backgroundColor = `rgba(${bgColor.r}, ${bgColor.g}, ${bgColor.b}, 0.04)`; - } containerStyle = { ...styles.base, - ...styles.parentNode, - backgroundColor + ...styles.parentNode }; if (this.state.expanded) { spanStyle = {