@@ -52,9 +52,16 @@ const initialState = {
5252 size : 10 ,
5353} ;
5454
55- const customAggValuesContainerCmp = ( valuesCmp ) => < Menu . Menu > { valuesCmp } </ Menu . Menu > ;
55+ const customAggValuesContainerCmp = ( valuesCmp ) => (
56+ < Menu . Menu > { valuesCmp } </ Menu . Menu >
57+ ) ;
5658
57- const customAggValueCmp = ( bucket , isSelected , onFilterClicked , getChildAggCmps ) => {
59+ const customAggValueCmp = (
60+ bucket ,
61+ isSelected ,
62+ onFilterClicked ,
63+ getChildAggCmps
64+ ) => {
5865 const childAggCmps = getChildAggCmps ( bucket ) ;
5966 return (
6067 < Menu . Item
@@ -82,7 +89,11 @@ class Tags extends Component {
8289 const { tags } = this . props ;
8390 return tags . map ( ( tag , index ) => (
8491 // eslint-disable-next-line react/no-array-index-key
85- < Button key = { index } size = "mini" onClick = { ( event ) => this . onClick ( event , tag ) } >
92+ < Button
93+ key = { index }
94+ size = "mini"
95+ onClick = { ( event ) => this . onClick ( event , tag ) }
96+ >
8697 { tag }
8798 </ Button >
8899 ) ) ;
@@ -96,12 +107,17 @@ Tags.propTypes = {
96107const OpenSearchResultsListItem = ( { result, index } ) => {
97108 return (
98109 < Item key = { index } href = "#" >
99- < Item . Image size = "small" src = { result . picture || "https://placehold.co/200" } />
110+ < Item . Image
111+ size = "small"
112+ src = { result . picture || "https://placehold.co/200" }
113+ />
100114 < Item . Content >
101115 < Item . Header >
102116 { result . first_name } { result . last_name }
103117 </ Item . Header >
104- < Item . Description > { _truncate ( result . about , { length : 200 } ) } </ Item . Description >
118+ < Item . Description >
119+ { _truncate ( result . about , { length : 200 } ) }
120+ </ Item . Description >
105121 < Item . Extra >
106122 < Tags tags = { result . tags } />
107123 </ Item . Extra >
@@ -123,7 +139,9 @@ const OpenSearchResultsGridItem = ({ result, index }) => {
123139 < Card . Header >
124140 { result . first_name } { result . last_name }
125141 </ Card . Header >
126- < Card . Description > { _truncate ( result . about , { length : 200 } ) } </ Card . Description >
142+ < Card . Description >
143+ { _truncate ( result . about , { length : 200 } ) }
144+ </ Card . Description >
127145 </ Card . Content >
128146 < Card . Content extra >
129147 < Tags tags = { result . tags } />
0 commit comments