@@ -17,12 +17,6 @@ import { deleteSeries, setCurrentTabInApp } from '../actions/actions';
17
17
import { useStoreContext } from '../store' ;
18
18
19
19
/* TYPESCRIPT */
20
- interface data {
21
- snapshotId ?: string ;
22
- }
23
- interface series {
24
- seriesId ?: any ;
25
- }
26
20
27
21
interface margin {
28
22
top : number ;
@@ -94,7 +88,7 @@ const BarGraphComparisonActions = props => {
94
88
// data accessor (used to generate scales) and formatter (add units for on hover box)
95
89
const getSeriesName = action => action . seriesName ;
96
90
97
- // create visualization SCALES with cleaned data
91
+ // create visualization SCALES with cleaned data.
98
92
// the domain array/xAxisPoints elements will place the bars along the x-axis
99
93
const seriesNameScale = scaleBand < string > ( {
100
94
domain : data . map ( getSeriesName ) ,
@@ -157,38 +151,16 @@ const BarGraphComparisonActions = props => {
157
151
if ( ! event ) return ;
158
152
setSeries ( event . target . value ) ;
159
153
setAction ( false ) ;
160
- // setXpoints();
161
- } ;
162
-
163
- const handleClose = ( ) => {
164
- setOpen ( false ) ;
165
- // setXpoints();
166
- } ;
167
-
168
- const handleOpen = ( ) => {
169
- setOpen ( true ) ;
170
- // setXpoints();
171
154
} ;
172
155
173
156
const handleActionChange = event => {
174
157
if ( ! event ) return ;
175
158
setAction ( event . target . value ) ;
176
159
setSeries ( false ) ;
177
- // setXpoints();
178
- } ;
179
-
180
- const picHandleClose = ( ) => {
181
- setPicOpen ( false ) ;
182
- // setXpoints();
183
- } ;
184
-
185
- const picHandleOpen = ( ) => {
186
- setPicOpen ( true ) ;
187
- // setXpoints();
188
160
} ;
189
161
190
162
const animateButton = function ( e ) {
191
- e . preventDefault ;
163
+ e . preventDefault ( ) ;
192
164
e . target . classList . add ( 'animate' ) ;
193
165
e . target . innerHTML = 'Deleted!' ;
194
166
setTimeout ( ( ) => {
@@ -230,9 +202,6 @@ const BarGraphComparisonActions = props => {
230
202
labelId = "simple-select-outlined-label"
231
203
id = "simple-select-outlined"
232
204
className = { classes . select }
233
- // open={open}
234
- // onClose={handleClose}
235
- // onOpen={handleOpen}
236
205
value = { series }
237
206
onChange = { handleSeriesChange }
238
207
>
@@ -248,9 +217,6 @@ const BarGraphComparisonActions = props => {
248
217
labelId = "snapshot-select"
249
218
id = "snapshot-select"
250
219
className = { classes . select }
251
- // open={picOpen}
252
- // onClose={picHandleClose}
253
- // onOpen={picHandleOpen}
254
220
value = { action } // snapshots
255
221
onChange = { handleActionChange }
256
222
>
0 commit comments