Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
removed MOST warnins
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandunn committed Mar 23, 2017
1 parent 0f93374 commit 80578cb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/js_src/containers/genePage/transcriptViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ class TranscriptViewer extends Component {
return (
<div className={style.jbrowse}>
<a href={jbrowseUrl} rel="noopener noreferrer" target='_blank'>
<img src={finalUrl}
<img
onError={this.handleImageErrored.bind(this)}
onLoad={this.handleImageLoaded.bind(this)}
src={finalUrl}
/>
</a>
{this.state.imageStatus === 'loading'
? <div>Loading ... <img src="https://upload.wikimedia.org/wikipedia/commons/b/b1/Loading_icon.gif"/></div>
? <div>Loading ... <img src="https://upload.wikimedia.org/wikipedia/commons/b/b1/Loading_icon.gif" /> </div>
: ''
}
</div>
Expand All @@ -52,11 +53,11 @@ class TranscriptViewer extends Component {
}

TranscriptViewer.propTypes = {
chromosome: React.PropTypes.string,
fmax: React.PropTypes.number,
fmin: React.PropTypes.number,
geneSymbol: React.PropTypes.string.isRequired,
species: React.PropTypes.string.isRequired,
fmin: React.PropTypes.number,
fmax: React.PropTypes.number,
chromosome: React.PropTypes.string,
};

export default TranscriptViewer;

0 comments on commit 80578cb

Please sign in to comment.