Skip to content

Commit

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

Expand All @@ -43,7 +42,7 @@ const RemoveDialog = ({
onClose={() => onResult(false)}
message={t('sharedRemoveConfirm')}
action={(
<Button size="small" className={classes.button} onClick={handleRemove}>
<Button size="small" className={classes.button} color="error" onClick={handleRemove}>
{t('sharedRemove')}
</Button>
)}
Expand Down
5 changes: 1 addition & 4 deletions src/common/components/StatusCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ const useStyles = makeStyles((theme) => ({
maxHeight: theme.dimensions.cardContentMaxHeight,
overflow: 'auto',
},
delete: {
color: theme.palette.error.main,
},
icon: {
width: '25px',
height: '25px',
Expand Down Expand Up @@ -254,9 +251,9 @@ const StatusCard = ({ deviceId, position, onClose, disableActions, desktopPaddin
<EditIcon />
</IconButton>
<IconButton
color="error"
onClick={() => setRemoving(true)}
disabled={disableActions || deviceReadonly}
className={classes.delete}
>
<DeleteIcon />
</IconButton>
Expand Down
14 changes: 4 additions & 10 deletions src/reports/LogsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ const useStyles = makeStyles((theme) => ({
width: '1%',
paddingLeft: theme.spacing(1),
},
success: {
color: theme.palette.success.main,
},
error: {
color: theme.palette.error.main,
},
}));

const LogsPage = () => {
Expand Down Expand Up @@ -59,13 +53,13 @@ const LogsPage = () => {
<TableRow key={index}>
<TableCell className={classes.columnAction} padding="none">
{item.deviceId ? (
<IconButton size="small" disabled>
<CheckCircleOutlineIcon fontSize="small" className={classes.success} />
<IconButton color="success" size="small" disabled>
<CheckCircleOutlineIcon fontSize="small" />
</IconButton>
) : (
<Tooltip title={t('loginRegister')}>
<IconButton size="small" onClick={() => registerDevice(item.uniqueId)}>
<HelpOutlineIcon fontSize="small" className={classes.error} />
<IconButton color="error" size="small" onClick={() => registerDevice(item.uniqueId)}>
<HelpOutlineIcon fontSize="small" />
</IconButton>
</Tooltip>
)}
Expand Down

0 comments on commit 2cd76a3

Please sign in to comment.