File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/containers/SequenceSearch/components/Results Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ seqInfoSize | used in results, it changes the size of the text `number o
129129searchButtonColor | change the color of the ` Search ` button |
130130clearButtonColor | change the color of the ` Clear ` button |
131131uploadButtonColor | change the color of the ` Upload file ` button |
132+ loadMoreButtonColor | change the color of the ` Load more ` button |
132133
133134## Developer details
134135
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ class Results extends React.Component {
4141 fontSize : this . props . customStyle && this . props . customStyle . h3Size ? this . props . customStyle . h3Size : "" ,
4242 fontWeight : "300" ,
4343 } ;
44+ const loadMoreButtonColor = this . props . customStyle && this . props . customStyle . loadMoreButtonColor ? this . props . customStyle . loadMoreButtonColor : "" ;
4445
4546 // exact match URS ids
4647 const exactMatch = this . props . exactMatch ;
@@ -175,7 +176,7 @@ class Results extends React.Component {
175176 < ul key = { `${ entry } _${ index } ` } > < Hit entry = { entry } customStyle = { this . props . customStyle } databases = { this . props . databases } exactMatchUrsId = { exactMatchUrsId } /> </ ul >
176177 ) ) }
177178 < div className = "small-12 columns" >
178- { this . props . status === "loading" ? < i className = "animated infinite flash" > ...</ i > : ( this . props . status === "success" || this . props . status === "partial_success" ) && ( this . props . entries . length < this . props . hitCount ) && ( < a className = "button small" onClick = { this . props . onLoadMore } target = "_blank" > Load more</ a > ) }
179+ { this . props . status === "loading" ? < i className = "animated infinite flash" > ...</ i > : ( this . props . status === "success" || this . props . status === "partial_success" ) && ( this . props . entries . length < this . props . hitCount ) && ( < a className = "button small" onClick = { this . props . onLoadMore } target = "_blank" style = { { background : loadMoreButtonColor } } > Load more</ a > ) }
179180 </ div >
180181 </ section >
181182 </ div >
You can’t perform that action at this time.
0 commit comments