Skip to content

Commit 6769526

Browse files
committed
sean found the missing carrot
1 parent 5160c30 commit 6769526

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

src/app/components/StateRoute/PerformanceVisx/BarGraphComparison.tsx

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/// <reference lib="dom" />
33
/* eslint-disable no-param-reassign */
44
import React, { useEffect, useState } from 'react';
5-
import React, { useEffect, useState } from 'react';
65
import { BarStack } from '@visx/shape';
76
import { Group } from '@visx/group';
87
import { Grid } from '@visx/grid';
@@ -57,13 +56,6 @@ const BarGraphComparison = (props: BarGraphComparisonProps): JSX.Element => {
5756
//tracking whether or not the clear series button is clicked
5857
const [buttonLoad, setButtonLoad] = useState(false);
5958

60-
const theme = useTheme();
61-
const [snapshots] = useState(0);
62-
const [open, setOpen] = useState(false);
63-
const [picOpen, setPicOpen] = useState(false);
64-
//tracking whether or not the clear series button is clicked
65-
const [buttonLoad, setButtonLoad] = useState(false);
66-
6759
const theme = useTheme();
6860
useEffect(() => {
6961
dispatch(setCurrentTabInApp('performance-comparison'));
@@ -206,37 +198,24 @@ const BarGraphComparison = (props: BarGraphComparisonProps): JSX.Element => {
206198
<div>
207199
<div className='series-options-container'>
208200
<div className='dropdown-and-delete-series-container'>
209-
<Button
210-
variant='contained'
211-
sx={{ p: 2, color: 'white' }}
212-
// type='button'
213-
>
214201
<Button
215202
variant='contained'
216203
sx={{ p: 2, color: 'white' }}
217204
// type='button'
218205
className='delete-button'
219206
onClick={() => {
220-
setButtonLoad(true);
221207
setButtonLoad(true);
222208
dispatch(deleteSeries());
223209

224210
setTimeout(() => {
225211
setButtonLoad(false);
226212
}, 1000);
227-
228-
setTimeout(() => {
229-
setButtonLoad(false);
230-
}, 1000);
231213
}}
232214
style={
233215
buttonLoad
234216
? { backgroundColor: theme.palette.primary.main }
235217
: { backgroundColor: theme.palette.secondary.main }
236-
}
237-
>
238-
{buttonLoad ? 'Deleted' : 'Clear Series'}
239-
</Button>
218+
}>
240219
{buttonLoad ? 'Deleted' : 'Clear Series'}
241220
</Button>
242221
<h4 className='compare-series-box' style={{ padding: '0 1rem' }}>

0 commit comments

Comments
 (0)