mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-19 13:52:12 +00:00
mute icon state fixed
This commit is contained in:
parent
6dad59e0be
commit
93343bac1f
1 changed files with 4 additions and 3 deletions
|
|
@ -16,9 +16,10 @@ class MuteButton extends React.Component {
|
|||
|
||||
render() {
|
||||
const icon = this.props.muted ? 'ic_volume0' :
|
||||
this.props.volume < 30 ? 'ic_volume1' :
|
||||
this.props.volume < 70 ? 'ic_volume2' :
|
||||
'ic_volume3';
|
||||
(this.props.volume === null || isNaN(this.props.volume)) ? 'ic_volume3' :
|
||||
this.props.volume < 30 ? 'ic_volume1' :
|
||||
this.props.volume < 70 ? 'ic_volume2' :
|
||||
'ic_volume3';
|
||||
return (
|
||||
<div className={classnames(this.props.className, { 'disabled': this.props.muted === null })} onClick={this.toggleMuted}>
|
||||
<Icon className={'icon'} icon={icon} />
|
||||
|
|
|
|||
Loading…
Reference in a new issue