@@ -9,26 +9,26 @@ const sideSpan = { xxl: 1, xl: 1, lg: 1, md: 2, sm: 2, xs: 3 };
9
9
const isHoveredSpan = { xxl : 1 , xl : 1 , lg : 1 , md : 1 , sm : 2 , xs : 3 } ;
10
10
11
11
/**
12
- * @param {* } props props object
13
- * @param {* } props.name item name
14
- * @param {* } props.avatarBackgroundColor item avatar background color
15
- * @param {* } props.item valid item
16
- * @param {* } props.isSelected select flag
17
- * @param {* } props.onSelectItem select callback
18
- * @param {* } props.onDeselectItem deselect callback
19
- * @param {* } props.renderActions item render actions
20
- * @param {* } props.children item children
21
- * @function
12
+ * @function ListItem
22
13
* @name ListItem
23
14
* @description Generic list item(row) for list component
15
+ * @param {object } props props object
16
+ * @param {object } props.item valid item
17
+ * @param {string } props.name item name
18
+ * @param {string } props.avatarBackgroundColor item avatar background color
19
+ * @param {boolean } props.isSelected select flag
20
+ * @param {Function } props.onSelectItem select callback
21
+ * @param {Function } props.onDeselectItem deselect callback
22
+ * @param {Function } props.renderActions item render actions
23
+ * @param {object[] } props.children item children
24
24
* @returns {object } React Component
25
25
* @version 0.1.0
26
26
* @since 0.1.0
27
27
*/
28
28
const ListItem = ( {
29
+ item,
29
30
name,
30
31
avatarBackgroundColor,
31
- item,
32
32
isSelected,
33
33
onSelectItem,
34
34
onDeselectItem,
@@ -130,11 +130,11 @@ ListItem.propTypes = {
130
130
} ) . isRequired ,
131
131
name : PropTypes . string ,
132
132
avatarBackgroundColor : PropTypes . string ,
133
- children : PropTypes . node . isRequired ,
134
- renderActions : PropTypes . func . isRequired ,
135
133
isSelected : PropTypes . bool . isRequired ,
136
134
onSelectItem : PropTypes . func . isRequired ,
137
135
onDeselectItem : PropTypes . func . isRequired ,
136
+ renderActions : PropTypes . func . isRequired ,
137
+ children : PropTypes . node . isRequired ,
138
138
} ;
139
139
140
140
ListItem . defaultProps = {
0 commit comments