Created
August 30, 2015 05:57
-
-
Save jacobh/0e9a111044f42280987a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var TrackDownloadPanel = React.createClass({ | |
propTypes: { | |
track: React.PropTypes.object | |
}, | |
render: function () { | |
var audioUrls = _.get(this.props.track, "audio_urls", {}) | |
return ( | |
<div className="track-download__container"> | |
<Button className="track-download__button" href={audioUrls.stream}>Download (Stream)</Button> | |
<Button className="track-download__button" href={audioUrls.archive}>Download (Archive)</Button> | |
<span className="track-download__help-text">Right Click → Save As</span> | |
</div> | |
) | |
} | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.track-download__container { | |
padding-top: 3px; | |
} | |
.track-download__button { | |
display: block; | |
margin-bottom: 7px; | |
} | |
.track-download__help-text { | |
padding-top: 5px; | |
display: inline-block; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment