Skip to content

Commit

Permalink
chore: use theme aware properties in Reset and Download action buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
m453h committed Jul 12, 2024
1 parent 62bc239 commit 39d0f94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/roboshield/src/components/Code/Code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ export default function Code(props: CodeProps) {
/>
}
sx={(theme: Theme) => ({
background: theme.palette.text.primary,
borderColor: theme.palette.text.primary,
bgcolor: "text.primary",
borderColor: "text.primary",
"&:hover": {
color: "text.primary",
},
Expand Down Expand Up @@ -133,12 +133,12 @@ export default function Code(props: CodeProps) {
/>
}
sx={{
background: "error.main",
bgcolor: "error.main",
borderColor: "error.main",
"&:hover": {
color: "error.main",
},
})}
}}
onClick={onReset}
disabled={!showButtons}
>
Expand Down

0 comments on commit 39d0f94

Please sign in to comment.