File tree Expand file tree Collapse file tree 3 files changed +10
-12
lines changed
Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ class SearchBar extends Component {
139139 } )
140140
141141 const results = this . state . loading === true
142- ? < div className = "loading" > < Loader /> </ div >
142+ ? < div className = "loading-suggestions " > < Loader /> </ div >
143143 : < SearchSuggestions recentSearch = { recentList } popularSearch = { popularList } onSuggestionSelect = { this . handleSuggestionSelect } />
144144 return (
145145 < div className = { sbClasses } >
Original file line number Diff line number Diff line change @@ -145,16 +145,14 @@ $active-icon-wrap-bg: #888894;
145145 left : 0 ;
146146 width : 100% ;
147147 z-index : 1000 ;
148- }
149-
150- .loading {
151- background : none ;
152- }
153148
154- .SearchSuggestions {
149+ .loading-suggestions {
150+ }
155151
156- strong {
157- font-weight : 600 ;
152+ .SearchSuggestions {
153+ strong {
154+ font-weight : 600 ;
155+ }
158156 }
159157 }
160158}
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class SearchSuggestions extends Component {
6363 { recentList . map ( suggestionItem ) }
6464 </ ul >
6565 {
66- popularList ? '' : (
66+ popularList . length !== 0 ? '' : (
6767 < a href = "javascript:;" className = "footer-link transition" >
6868 Learn more about the new Search here
6969 </ a >
@@ -105,13 +105,13 @@ class SearchSuggestions extends Component {
105105SearchSuggestions . propTypes = {
106106 onSuggestionSelect : PropTypes . func . isRequired ,
107107 recentSearch : PropTypes . array ,
108- popularList : PropTypes . array ,
108+ popularSearch : PropTypes . array ,
109109 searchTerm : PropTypes . string
110110}
111111
112112SearchSuggestions . defaultProps = {
113113 recentSearch : [ ] ,
114- popularList : [ ] ,
114+ popularSearch : [ ] ,
115115 searchTerm : ''
116116}
117117
You can’t perform that action at this time.
0 commit comments