From 2aad507650fa3263ef81be759ab0531b43e5b7cc Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 27 Jul 2020 15:44:29 +0200 Subject: annotation form for curtain events. refactor utilities --- .../app/views/align/components/annotations/annotation.index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'animism-align/frontend/app/views/align/components/annotations/annotation.index.js') diff --git a/animism-align/frontend/app/views/align/components/annotations/annotation.index.js b/animism-align/frontend/app/views/align/components/annotations/annotation.index.js index aa31268..da1038f 100644 --- a/animism-align/frontend/app/views/align/components/annotations/annotation.index.js +++ b/animism-align/frontend/app/views/align/components/annotations/annotation.index.js @@ -1,4 +1,4 @@ -import React, { Component } from 'react' +import React, { PureComponent } from 'react' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' @@ -6,11 +6,11 @@ import actions from 'app/actions' import { ZOOM_STEPS, INNER_HEIGHT } from 'app/constants' import { clamp } from 'app/utils' -import { positionToTime, timeToPosition } from 'app/views/align/align.util' +import { positionToTime, timeToPosition } from 'app/utils/align.utils' import { AnnotationElementLookup } from './annotationTypes' -class AnnotationIndex extends Component { +class AnnotationIndex extends PureComponent { state = { items: [], } -- cgit v1.2.3-70-g09d2