Skip to content

Commit

Permalink
Update SourcesControl.jsx
Browse files Browse the repository at this point in the history
Testing also done
  • Loading branch information
Vismayak committed Jun 15, 2023
1 parent 47e58b2 commit 8e15d32
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions packages/core/src/components/ol/SourcesControl.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,31 +270,33 @@ const SourcesControl = ({
</CardContent>
<CardContent className={classes.cardContent}>
<List>
<Grid
container
alignContent="center"
alignItems="center"
wrap="nowrap"
>
<Grid
container
alignContent="center"
alignItems="center"
wrap="nowrap"
className={`${classes.sourceCheckbox} centeredText`}
item
xs={2}
style={{ background: '#143849' }}
onClick={(e) => toggleAllSources(e)}
>
<Grid
className={`${classes.sourceCheckbox} centeredText`}
item
xs={2}
style={{ background: '#143849' }}
onClick={(e) => toggleAllSources(e)}
>
<Checkbox
checked={allSourcesVisibility}
icon={<CircleUncheckedIcon htmlColor="white" />}
checkedIcon={
<CircleCheckedFilledIcon htmlColor="white" />
}
/>
</Grid>
<Grid className={classes.sourceLabel} item xs={12}>
<Checkbox
checked={allSourcesVisibility}
icon={<CircleUncheckedIcon htmlColor="white" />}
checkedIcon={
<CircleCheckedFilledIcon htmlColor="white" />
}
/>
</Grid>
<Grid className={classes.sourceLabel} item xs={12}>
<Typography gutterBottom variant="subtitle1">
Switch on/off all sources
</Grid>
</Typography>
</Grid>
</Grid>
{sources.map((source) => {
const primaryColor = getSourceColor(sourcesConfig[source.id]);
const secondaryColor = interpolateRgb(primaryColor, '#FFF')(0.8);
Expand Down

0 comments on commit 8e15d32

Please sign in to comment.