refactor(ui/player): fix player toggle method
This commit is contained in:
parent
b00bc4fe9a
commit
a1441c16c6
1 changed files with 2 additions and 1 deletions
|
|
@ -22,6 +22,7 @@ function Overlay({
|
|||
}: Props) {
|
||||
const { player, store } = React.useContext(PlayerContext)
|
||||
|
||||
const togglePlay = () => player.togglePlay()
|
||||
const {
|
||||
playing,
|
||||
messagesLoading,
|
||||
|
|
@ -57,7 +58,7 @@ function Overlay({
|
|||
}
|
||||
{ loading ? <Loader /> : null }
|
||||
{ showPlayIconLayer &&
|
||||
<PlayIconLayer playing={playing} togglePlay={player.togglePlay} />
|
||||
<PlayIconLayer playing={playing} togglePlay={togglePlay} />
|
||||
}
|
||||
{ markedTargets && <ElementsMarker targets={ markedTargets } activeIndex={activeTargetIndex}/>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue