11import * as React from 'react' ;
22import HighlightCanvas from './HighlightCanvas' ;
3- import HighlightCreator from './HighlightCreator' ;
43import HighlightList from './HighlightList' ;
54import HighlightSvg from './HighlightSvg' ;
65import HighlightTarget from './HighlightTarget' ;
@@ -107,10 +106,7 @@ const HighlightAnnotations = (props: Props): JSX.Element => {
107106 { /* Layer 1: Saved annotations */ }
108107 < HighlightList activeId = { activeAnnotationId } annotations = { annotations } onSelect = { handleAnnotationActive } />
109108
110- { /* Layer 2: Drawn (unsaved) incomplete annotation target, if any */ }
111- { canCreate && < HighlightCreator className = "ba-HighlightAnnotations-creator" /> }
112-
113- { /* Layer 3: Staged (unsaved) highlight target, if any */ }
109+ { /* Layer 2: Staged (unsaved) highlight target, if any */ }
114110 { canCreate && staged && (
115111 < div className = "ba-HighlightAnnotations-target" >
116112 < HighlightCanvas shapes = { staged . shapes } />
@@ -120,14 +116,14 @@ const HighlightAnnotations = (props: Props): JSX.Element => {
120116 </ div >
121117 ) }
122118
123- { /* Layer 4a : Annotations promoter to promote selection to staged */ }
119+ { /* Layer 3a : Annotations promoter to promote selection to staged */ }
124120 { ! isCreating && selection && ! selection . hasError && (
125121 < div className = "ba-HighlightAnnotations-popup" >
126122 < PopupHighlight onClick = { handlePromote } shape = { getBoundingRect ( selection . rects ) } />
127123 </ div >
128124 ) }
129125
130- { /* Layer 4b : Highlight error popup */ }
126+ { /* Layer 3b : Highlight error popup */ }
131127 { selection && selection . hasError && (
132128 < div className = "ba-HighlightAnnotations-popup" >
133129 < PopupHighlightError shape = { getBoundingRect ( selection . rects ) } />
0 commit comments