Skip to content

Commit

Permalink
[frontend] use sx instead of useStyles in payloads (#1821)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumejparis authored Nov 14, 2024
1 parent f3ed0bd commit 9d322a1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion openbas-front/src/admin/components/payloads/Payloads.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,15 @@ const inlineStyles: Record<string, CSSProperties> = {
},
};

const chipSx = {
fontSize: 12,
height: 20,
float: 'left',
textTransform: 'uppercase',
borderRadius: 1,
width: 120,
};

const Payloads = () => {
// Standard hooks
const classes = useStyles();
Expand Down Expand Up @@ -167,7 +176,7 @@ const Payloads = () => {
value: (payload: PayloadStore) => (
<Chip
variant="outlined"
classes={{ root: classes.chipInList2 }}
sx={chipSx}
color="primary"
label={t(payload.payload_source ?? 'MANUAL')}
/>
Expand Down

0 comments on commit 9d322a1

Please sign in to comment.