Skip to content

Commit

Permalink
added the play button to the song that won (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgerber authored and JSingmin committed Oct 18, 2018
1 parent 1d7493e commit 30dd10e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/Components/Card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ import CardContent from '@material-ui/core/CardContent';
import CardMedia from '@material-ui/core/CardMedia';
import IconButton from '@material-ui/core/IconButton';
import Typography from '@material-ui/core/Typography';
import SkipPreviousIcon from '@material-ui/icons/SkipPrevious';
import PlayArrowIcon from '@material-ui/icons/PlayArrow';
import ThumbsUp from '@material-ui/icons/ThumbUp';
import ThumbsDown from '@material-ui/icons/ThumbDown';
const styles = (theme: Theme) =>
createStyles({
card: {
Expand Down Expand Up @@ -38,6 +36,7 @@ const styles = (theme: Theme) =>
paddingBottom: theme.spacing.unit,
},
playIcon: {
alignItems: 'left',
height: 38,
width: 38,
},
Expand Down Expand Up @@ -82,6 +81,13 @@ function MediaControlCard(props) {
</Typography>
</div>
}
{!displayVoting &&
<div className={classes.controls}>
<IconButton aria-label="Play/pause">
<PlayArrowIcon className={classes.playIcon} />
</IconButton>
</div>
}
</div>
<CardMedia className={classes.cover} image={albumArt} />
</Card>
Expand Down

0 comments on commit 30dd10e

Please sign in to comment.