Skip to content

Commit b9982dc

Browse files
committed
before merge
1 parent 4d13caa commit b9982dc

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/app/components/Tree.jsx

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ import React from 'react';
22
import JSONTree from 'react-json-tree';
33
import PropTypes from 'prop-types';
44

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>;
106

117
const Tree = (props) => {
128
const { snapshot } = props;
@@ -29,13 +25,8 @@ const Tree = (props) => {
2925

3026
Tree.propTypes = {
3127
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),
3930
name: PropTypes.string,
4031
}).isRequired,
4132
};

0 commit comments

Comments
 (0)