File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,7 @@ import React from 'react';
2
2
import JSONTree from 'react-json-tree' ;
3
3
import PropTypes from 'prop-types' ;
4
4
5
- const getItemString = ( type , data , itemType , itemString ) => (
6
- < span >
7
- { data . name }
8
- </ span >
9
- ) ;
5
+ const getItemString = ( type , data , itemType , itemString ) => < span > { data . name } </ span > ;
10
6
11
7
const Tree = ( props ) => {
12
8
const { snapshot } = props ;
@@ -29,13 +25,8 @@ const Tree = (props) => {
29
25
30
26
Tree . propTypes = {
31
27
snapshot : PropTypes . shape ( {
32
- state : PropTypes . oneOfType ( [
33
- PropTypes . string ,
34
- PropTypes . object ,
35
- ] ) ,
36
- children : PropTypes . arrayOf (
37
- PropTypes . object ,
38
- ) ,
28
+ state : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . object ] ) ,
29
+ children : PropTypes . arrayOf ( PropTypes . object ) ,
39
30
name : PropTypes . string ,
40
31
} ) . isRequired ,
41
32
} ;
You can’t perform that action at this time.
0 commit comments