forked from 77media/video-flow
简化暂停/播放按钮的点击事件处理逻辑
This commit is contained in:
parent
84a5e9ab58
commit
4e21aea1a0
@ -239,7 +239,7 @@ const WorkFlow = React.memo(function WorkFlow() {
|
||||
icon={isPauseWorkFlow ? Play : Pause}
|
||||
size='lg'
|
||||
tooltip={isPauseWorkFlow ? "Play" : "Pause"}
|
||||
onClick={useCallback(() => setIsPauseWorkFlow(!isPauseWorkFlow), [isPauseWorkFlow])}
|
||||
onClick={() => setIsPauseWorkFlow(!isPauseWorkFlow)}
|
||||
/>
|
||||
{ mode !== 'automatic' && (
|
||||
<GlassIconButton
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user