From 31d33744173d79c8f285cbf688b6f33fff3b8904 Mon Sep 17 00:00:00 2001 From: Alex P Date: Mon, 26 Feb 2018 18:20:31 -0800 Subject: [PATCH] Cleanup --- ui/src/shared/components/AnnotationPoint.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/ui/src/shared/components/AnnotationPoint.js b/ui/src/shared/components/AnnotationPoint.js index adb112fa4..929506b85 100644 --- a/ui/src/shared/components/AnnotationPoint.js +++ b/ui/src/shared/components/AnnotationPoint.js @@ -87,15 +87,16 @@ class AnnotationPoint extends React.Component { render() { const {annotation, mode, dygraph} = this.props + const {isDragging} = this.state const isEditing = mode === EDITING - const humanTime = `${new Date(+annotation.startTime)}` - const {isDragging} = this.state const flagClass = isDragging ? 'annotation-point--flag__dragging' : 'annotation-point--flag' + const markerClass = isDragging ? 'annotation dragging' : 'annotation' + const clickClass = isEditing ? 'annotation--click-area editing' : 'annotation--click-area' @@ -103,12 +104,7 @@ class AnnotationPoint extends React.Component { const left = `${dygraph.toDomXCoord(annotation.startTime) + 16}px` return ( -
+