Skip to content

Commit

Permalink
Using a better color type for the Union/Intersection icons -- #267
Browse files Browse the repository at this point in the history
  • Loading branch information
chrtannus committed May 9, 2024
1 parent f9f4e9f commit afb0c24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/components/network-editor/left-drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,14 +471,14 @@ const LeftDrawer = ({ controller, open, isMobile, isTablet, onClose }) => {
renderValue={(value) => {
return (
<Box sx={{ display: "flex", gap: 1 }}>
{ setOperationOptions[value].icon({color: setOperationsDisabled ? 'disabled' : 'primary'}) }
{ setOperationOptions[value].icon({color: setOperationsDisabled ? 'disabled' : 'inherit'}) }
</Box>
);
}}
>
{Object.entries(setOperationOptions).map(([k, { label, description, icon }]) => (
<MenuItem key={k} value={k}>
<ListItemIcon className={classes.setOperationIcon}>{ icon({color: 'primary'}) }</ListItemIcon>
<ListItemIcon className={classes.setOperationIcon}>{ icon({color: 'inherit'}) }</ListItemIcon>
<ListItemText primary={label} secondary={description} />
</MenuItem>
))}
Expand Down

0 comments on commit afb0c24

Please sign in to comment.