-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64ca513
commit 44a2486
Showing
7 changed files
with
182 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { withSoundCloudAudio } from '../../addons'; | ||
import { PlayButton, Timer } from '../../components'; | ||
|
||
class AWSSoundPlayer extends Component { | ||
render() { | ||
const { trackTitle } = this.props; | ||
|
||
return ( | ||
<div className="p1 mb3 mt1 flex flex-center bg-darken-1 orange rounded"> | ||
<PlayButton | ||
className="flex-none h4 button button-transparent button-grow rounded mr2" | ||
{...this.props} /> | ||
<h2 className="h5 nowrap caps flex-auto m0">{trackTitle}</h2> | ||
<Timer className="h6 mr1" {...this.props} /> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
AWSSoundPlayer.propTypes = { | ||
streamUrl: PropTypes.string.isRequired, | ||
trackTitle: PropTypes.string.isRequired | ||
}; | ||
|
||
export default withSoundCloudAudio(AWSSoundPlayer); |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.