From 347dde1f2c35502cd8a9f6112cd1dfc6fc13df0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFs=20Poujade?= <lois.poujade@tetras-libre.fr> Date: Mon, 6 Feb 2023 15:36:55 +0100 Subject: [PATCH] Follow 54b4fa20e0dc879c12c6aa6109c0127122249f07 --- src/components/AnnotationsOverlayVideo.js | 4 ++-- src/components/VideoViewer.js | 4 ++-- src/components/ViewerNavigationVideo.js | 2 +- src/components/WindowCanvasNavigationControlsVideo.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/AnnotationsOverlayVideo.js b/src/components/AnnotationsOverlayVideo.js index bc4562cfc..fa106f557 100755 --- a/src/components/AnnotationsOverlayVideo.js +++ b/src/components/AnnotationsOverlayVideo.js @@ -1,4 +1,4 @@ -import React, { Component } from 'react'; +import { createRef, Component } from 'react'; import PropTypes from 'prop-types'; import isEqual from 'lodash/isEqual'; import debounce from 'lodash/debounce'; @@ -64,7 +64,7 @@ export class AnnotationsOverlayVideo extends Component { constructor(props) { super(props); - this.ref = React.createRef(); + this.ref = createRef(); VideosReferences.set(props.windowId, this); this.canvasOverlay = null; // An initial value for the updateCanvas method diff --git a/src/components/VideoViewer.js b/src/components/VideoViewer.js index d13ebbdaf..849f63daf 100644 --- a/src/components/VideoViewer.js +++ b/src/components/VideoViewer.js @@ -1,6 +1,6 @@ import flatten from 'lodash/flatten'; import flattenDeep from 'lodash/flattenDeep'; -import React, { Component, Fragment } from 'react'; +import { createRef, Component } from 'react'; import PropTypes from 'prop-types'; import AnnotationItem from '../lib/AnnotationItem'; import AnnotationsOverlayVideo from '../containers/AnnotationsOverlayVideo'; @@ -11,7 +11,7 @@ export class VideoViewer extends Component { /** */ constructor(props) { super(props); - this.videoRef = React.createRef(); + this.videoRef = createRef(); this.state = { start: 0, diff --git a/src/components/ViewerNavigationVideo.js b/src/components/ViewerNavigationVideo.js index 0542fe7f6..86be2d95d 100755 --- a/src/components/ViewerNavigationVideo.js +++ b/src/components/ViewerNavigationVideo.js @@ -1,6 +1,6 @@ import ClosedCaption from '@material-ui/icons/ClosedCaption'; import ClosedCaptionOutlined from '@material-ui/icons/ClosedCaptionOutlined'; -import React, { Component } from 'react'; +import { Component } from 'react'; import PauseRoundedIcon from '@material-ui/icons/PauseRounded'; import PlayArrowRoundedIcon from '@material-ui/icons/PlayArrowRounded'; import PropTypes from 'prop-types'; diff --git a/src/components/WindowCanvasNavigationControlsVideo.js b/src/components/WindowCanvasNavigationControlsVideo.js index d29879a10..b52c99572 100755 --- a/src/components/WindowCanvasNavigationControlsVideo.js +++ b/src/components/WindowCanvasNavigationControlsVideo.js @@ -1,4 +1,4 @@ -import React, { Component } from 'react'; +import { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Paper from '@material-ui/core/Paper'; -- GitLab