Skip to content

Commit

Permalink
Fix color references (fix #1172)
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Sep 1, 2023
1 parent 4fc6161 commit 0a1a2e4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion modern/src/common/components/RemoveDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const useStyles = makeStyles((theme) => ({
height: 'auto',
marginTop: 0,
marginBottom: 0,
color: theme.palette.colors.negative,
color: theme.palette.error.main,
},
}));

Expand Down
6 changes: 3 additions & 3 deletions modern/src/common/components/StatusCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ const useStyles = makeStyles((theme) => ({
maxHeight: theme.dimensions.cardContentMaxHeight,
overflow: 'auto',
},
negative: {
color: theme.palette.colors.negative,
delete: {
color: theme.palette.error.main,
},
icon: {
width: '25px',
Expand Down Expand Up @@ -254,7 +254,7 @@ const StatusCard = ({ deviceId, position, onClose, disableActions, desktopPaddin
<IconButton
onClick={() => setRemoving(true)}
disabled={disableActions || deviceReadonly}
className={classes.negative}
className={classes.delete}
>
<DeleteIcon />
</IconButton>
Expand Down
2 changes: 1 addition & 1 deletion modern/src/main/EventsDrawer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const EventsDrawer = ({ open, onClose }) => {
secondary={formatTime(event.eventTime, 'seconds', hours12)}
/>
<IconButton size="small" onClick={() => dispatch(eventsActions.delete(event))}>
<DeleteIcon fontSize="small" className={classes.negative} />
<DeleteIcon fontSize="small" className={classes.delete} />
</IconButton>
</ListItemButton>
))}
Expand Down
4 changes: 2 additions & 2 deletions modern/src/reports/TripReportPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ const TripReportPage = () => {
{
latitude: selectedItem.startLat,
longitude: selectedItem.startLon,
image: 'default-negative',
image: 'default-error',
},
{
latitude: selectedItem.endLat,
longitude: selectedItem.endLon,
image: 'default-positive',
image: 'default-success',
},
]);

Expand Down

0 comments on commit 0a1a2e4

Please sign in to comment.