diff --git a/src/components/AnnotationsOverlayVideo.js b/src/components/AnnotationsOverlayVideo.js index bc4562cfcf609a475fa6823556286994f6edb571..fa106f557cdd5e700e8cdbd444f4065d2ea40369 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 d13ebbdafd40db0370f8fd8b840960ce6e03cdaf..849f63dafecbe59a4654e1994ea96248d054dae6 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 0542fe7f61f93d3e123ecf01bcfc6dfa97853c62..86be2d95d0d9849b51bf1ab05938162ece90aba5 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 d29879a1071386b927abf3a88f5fd00feac5d87c..b52c9957279a3fd98189971ea88042e0bbbcba4c 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';