Skip to content

Commit f506b6e

Browse files
committed
better be final merge of the day
2 parents 6769526 + 6d2c14d commit f506b6e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,10 @@ const BarGraphComparison = (props: BarGraphComparisonProps): JSX.Element => {
5252
const { width, height, data, comparison, setSeries, series, setAction } = props;
5353
const [snapshots] = useState(0);
5454
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
5957
const theme = useTheme();
58+
6059
useEffect(() => {
6160
dispatch(setCurrentTabInApp('performance-comparison'));
6261
}, [dispatch]);
@@ -198,6 +197,7 @@ const BarGraphComparison = (props: BarGraphComparisonProps): JSX.Element => {
198197
<div>
199198
<div className='series-options-container'>
200199
<div className='dropdown-and-delete-series-container'>
200+
201201
<Button
202202
variant='contained'
203203
sx={{ p: 2, color: 'white' }}
@@ -211,13 +211,12 @@ const BarGraphComparison = (props: BarGraphComparisonProps): JSX.Element => {
211211
setButtonLoad(false);
212212
}, 1000);
213213
}}
214-
style={
215-
buttonLoad
216-
? { backgroundColor: theme.palette.primary.main }
214+
style={ buttonLoad ? { backgroundColor: theme.palette.primary.main }
217215
: { backgroundColor: theme.palette.secondary.main }
218216
}>
219217
{buttonLoad ? 'Deleted' : 'Clear Series'}
220218
</Button>
219+
221220
<h4 className='compare-series-box' style={{ padding: '0 1rem' }}>
222221
Compare Series:{' '}
223222
</h4>

0 commit comments

Comments
 (0)