@@ -52,11 +52,10 @@ const BarGraphComparison = (props: BarGraphComparisonProps): JSX.Element => {
52
52
const { width, height, data, comparison, setSeries, series, setAction } = props ;
53
53
const [ snapshots ] = useState ( 0 ) ;
54
54
const [ open , setOpen ] = useState ( false ) ;
55
- const [ picOpen , setPicOpen ] = useState ( false ) ;
56
- //tracking whether or not the clear series button is clicked
57
- const [ buttonLoad , setButtonLoad ] = useState ( false ) ;
58
-
55
+ const [ picOpen , setPicOpen ] = useState ( false ) ;
56
+ const [ buttonLoad , setButtonLoad ] = useState ( false ) ; //tracking whether or not the clear series button is clicked
59
57
const theme = useTheme ( ) ;
58
+
60
59
useEffect ( ( ) => {
61
60
dispatch ( setCurrentTabInApp ( 'performance-comparison' ) ) ;
62
61
} , [ dispatch ] ) ;
@@ -198,6 +197,7 @@ const BarGraphComparison = (props: BarGraphComparisonProps): JSX.Element => {
198
197
< div >
199
198
< div className = 'series-options-container' >
200
199
< div className = 'dropdown-and-delete-series-container' >
200
+
201
201
< Button
202
202
variant = 'contained'
203
203
sx = { { p : 2 , color : 'white' } }
@@ -211,13 +211,12 @@ const BarGraphComparison = (props: BarGraphComparisonProps): JSX.Element => {
211
211
setButtonLoad ( false ) ;
212
212
} , 1000 ) ;
213
213
} }
214
- style = {
215
- buttonLoad
216
- ? { backgroundColor : theme . palette . primary . main }
214
+ style = { buttonLoad ? { backgroundColor : theme . palette . primary . main }
217
215
: { backgroundColor : theme . palette . secondary . main }
218
216
} >
219
217
{ buttonLoad ? 'Deleted' : 'Clear Series' }
220
218
</ Button >
219
+
221
220
< h4 className = 'compare-series-box' style = { { padding : '0 1rem' } } >
222
221
Compare Series:{ ' ' }
223
222
</ h4 >
0 commit comments