Make the music indicator a proper button
This commit is contained in:
parent
95211c672a
commit
f1c2db00e1
|
@ -23,8 +23,8 @@ class Indicator extends React.Component<Props, {}> {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
let classes = classNames({
|
let classes = classNames({
|
||||||
|
btn: true,
|
||||||
"col-auto": true,
|
"col-auto": true,
|
||||||
"text-center": true,
|
|
||||||
fas: true,
|
fas: true,
|
||||||
"fa-muted": this.props.muted,
|
"fa-muted": this.props.muted,
|
||||||
"fa-play": this.props.playing,
|
"fa-play": this.props.playing,
|
||||||
|
@ -32,11 +32,12 @@ class Indicator extends React.Component<Props, {}> {
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<button
|
||||||
|
type="button"
|
||||||
id="playerIndicator"
|
id="playerIndicator"
|
||||||
onClick={this.click.bind(this)}
|
onClick={this.click.bind(this)}
|
||||||
className={classes}
|
className={classes}
|
||||||
></div>
|
></button>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue