Remove unnecessary 'reload' at the return statement.
We no longer need to re-render the whole thing..
This commit is contained in:
parent
84bba58d64
commit
1f48dab312
1 changed files with 19 additions and 21 deletions
|
@ -434,26 +434,24 @@ export default React.memo<Props>(function VideoJs(props: Props) {
|
|||
}, [source, reload]);
|
||||
|
||||
return (
|
||||
reload && (
|
||||
// $FlowFixMe
|
||||
<div className={classnames('video-js-parent', { 'video-js-parent--ios': IS_IOS })} ref={containerRef}>
|
||||
<Button
|
||||
label={__('Tap to unmute')}
|
||||
button="link"
|
||||
icon={ICONS.VOLUME_MUTED}
|
||||
className="video-js--tap-to-unmute"
|
||||
onClick={unmuteAndHideHint}
|
||||
ref={tapToUnmuteRef}
|
||||
/>
|
||||
<Button
|
||||
label={__('Retry')}
|
||||
button="link"
|
||||
icon={ICONS.REFRESH}
|
||||
className="video-js--tap-to-unmute"
|
||||
onClick={retryVideoAfterFailure}
|
||||
ref={tapToRetryRef}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
// $FlowFixMe
|
||||
<div className={classnames('video-js-parent', { 'video-js-parent--ios': IS_IOS })} ref={containerRef}>
|
||||
<Button
|
||||
label={__('Tap to unmute')}
|
||||
button="link"
|
||||
icon={ICONS.VOLUME_MUTED}
|
||||
className="video-js--tap-to-unmute"
|
||||
onClick={unmuteAndHideHint}
|
||||
ref={tapToUnmuteRef}
|
||||
/>
|
||||
<Button
|
||||
label={__('Retry')}
|
||||
button="link"
|
||||
icon={ICONS.REFRESH}
|
||||
className="video-js--tap-to-unmute"
|
||||
onClick={retryVideoAfterFailure}
|
||||
ref={tapToRetryRef}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue