| 152 | } |
| 153 | |
| 154 | render() { |
| 155 | const { |
| 156 | data: value, |
| 157 | keyPath, |
| 158 | postprocessValue, |
| 159 | hideRoot, |
| 160 | theme, // eslint-disable-line no-unused-vars |
| 161 | invertTheme: _, // eslint-disable-line no-unused-vars |
| 162 | ...rest |
| 163 | } = this.props; |
| 164 | |
| 165 | const { styling } = this.state; |
| 166 | |
| 167 | return ( |
| 168 | <ul {...styling('tree')}> |
| 169 | <JSONNode |
| 170 | {...{ postprocessValue, hideRoot, styling, ...rest }} |
| 171 | keyPath={hideRoot ? [] : keyPath} |
| 172 | value={postprocessValue(value)} |
| 173 | /> |
| 174 | </ul> |
| 175 | ); |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | export { StylingValue }; |