Skip to content

Commit c334f8e

Browse files
committed
Allow the user to change the "Similar sequences" text
1 parent eb1b807 commit c334f8e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ parameter | description
120120
--------------------|-----------------------------------------------------------------------------------|
121121
h3Color | change the color of the `Similar sequences` and `Rfam classification` text |
122122
h3Size | change the size of the `Similar sequences` and `Rfam classification` text |
123+
similarSeqText | change the `Similar sequences` text |
123124
facetColor | change the color of the facet title |
124125
facetSize | change the size of the facet title |
125126
seqTitleColor | used in results, it changes the color of the title |

src/containers/SequenceSearch/components/Results/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class Results extends React.Component {
4242
fontWeight: "300",
4343
};
4444
const loadMoreButtonColor = this.props.customStyle && this.props.customStyle.loadMoreButtonColor ? this.props.customStyle.loadMoreButtonColor : "";
45+
const similarSeqText = this.props.customStyle && this.props.customStyle.similarSeqText ? this.props.customStyle.similarSeqText : "Similar sequences";
4546

4647
// exact match URS ids
4748
const exactMatch = this.props.exactMatch;
@@ -153,7 +154,7 @@ class Results extends React.Component {
153154
this.props.jobId && (this.props.status === "loading" || this.props.status === "success" || this.props.status === "partial_success") && [
154155
<div className="row" key={`results-div`}>
155156
<div className="small-12 columns">
156-
<h3 style={h3Style}>Similar sequences: { this.props.status === "loading" ? <i className="animated infinite flash">...</i> : <small>{ this.props.hitCount }</small> } { this.props.hits > 1000 ? <small>of { this.props.hits } <a href="https://rnacentral.org/help/sequence-search" style={{borderBottomStyle: "none"}} target="_blank"><i className="icon icon-generic icon-help" style={{fontSize: "70%"}}></i></a></small> : "" }</h3>
157+
<h3 style={h3Style}>{similarSeqText}: { this.props.status === "loading" ? <i className="animated infinite flash">...</i> : <small>{ this.props.hitCount }</small> } { this.props.hits > 1000 ? <small>of { this.props.hits } <a href="https://rnacentral.org/help/sequence-search" style={{borderBottomStyle: "none"}} target="_blank"><i className="icon icon-generic icon-help" style={{fontSize: "70%"}}></i></a></small> : "" }</h3>
157158
{
158159
this.props.entries && this.props.entries.length || this.props.filter ? <Filter databases={this.props.databases}/> : ""
159160
}

0 commit comments

Comments
 (0)