Skip to content

Commit 1341940

Browse files
committed
added in pseudocode on MUI components on bargraph Comparison
1 parent f25494f commit 1341940

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

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

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ const BarGraphComparison = (props: BarGraphComparisonProps): JSX.Element => {
139139
minWidth: 160,
140140
height: 30,
141141
}));
142-
142+
{
143+
/* StyledSelect to use for MUI select components to maintain consistent styling for all select components*/
144+
}
143145
const StyledSelect = styled(Select)({
144146
// applies the object to customize the style of the 'Select' component
145147
minWidth: 160,
@@ -219,6 +221,7 @@ const BarGraphComparison = (props: BarGraphComparisonProps): JSX.Element => {
219221
<div>
220222
<div className='series-options-container'>
221223
<div className='dropdown-and-delete-series-container'>
224+
{/*'Clear Series' MUI button that clears any saved series*/}
222225
<Button
223226
variant='contained'
224227
sx={{ p: 2, color: 'white' }}
@@ -240,17 +243,9 @@ const BarGraphComparison = (props: BarGraphComparisonProps): JSX.Element => {
240243
>
241244
{buttonLoad ? 'Deleted' : 'Clear Series'}
242245
</Button>
243-
{/* <h4 className='compare-series-box' style={{ padding: '0 1rem' }}>
244-
Compare Series:{' '}
245-
</h4> */}
246+
{/* Mui 'Compare Series Dropdown Starts here */}
246247
<StyledFormControl // MUI styled 'FormControl' component
247248
variant='filled'
248-
// style={{ color: 'white' }}
249-
// size='medium'
250-
// id='selectSeries'
251-
// variant='outlined'
252-
// label='compares series'
253-
// sx={{ backgroundColor: theme.palette.primary.main }}
254249
>
255250
<InputLabel
256251
id='simple-select-outlined-label'
@@ -279,6 +274,7 @@ const BarGraphComparison = (props: BarGraphComparisonProps): JSX.Element => {
279274
)}
280275
</StyledSelect>
281276
</StyledFormControl>
277+
{/* Mui 'Compare Series Dropdown ENDS here */}
282278

283279
{/*==============================================================================================================================*/}
284280
{/*commented the below portion out, as bargraphComparisonActions.tsx is not currently functional, can re implement later on */}

0 commit comments

Comments
 (0)