mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-05-03 21:19:06 +00:00
disabled flag fixed in play pause button
This commit is contained in:
parent
f156416f82
commit
47b688a5d6
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ const PlayPauseButton = ({ className, paused, dispatch }) => {
|
||||||
}
|
}
|
||||||
}, [paused, dispatch]);
|
}, [paused, dispatch]);
|
||||||
return (
|
return (
|
||||||
<Button className={classnames(className, { 'disabled': paused === null })} tabIndex={-1} onClick={togglePaused}>
|
<Button className={classnames(className, { 'disabled': typeof paused !== 'boolean' })} tabIndex={-1} onClick={togglePaused}>
|
||||||
<Icon
|
<Icon
|
||||||
className={'icon'}
|
className={'icon'}
|
||||||
icon={typeof paused !== 'boolean' || paused ? 'ic_play' : 'ic_pause'}
|
icon={typeof paused !== 'boolean' || paused ? 'ic_play' : 'ic_pause'}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue