Skip to content

Commit 4e5eeaf

Browse files
committed
fix: delete unnecessary margins in ScenarioValidationChip
1 parent fb76924 commit 4e5eeaf

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

src/misc/ScenarioValidationStatusChip/ScenarioValidationStatusChip.js

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
3-
import { Box, Chip, CircularProgress } from '@mui/material';
3+
import { Chip, CircularProgress } from '@mui/material';
44

55
export const ScenarioValidationStatusChip = (props) => {
66
const { labels, status, onDelete, className } = props;
@@ -17,30 +17,26 @@ export const ScenarioValidationStatusChip = (props) => {
1717

1818
if (lowerCaseStatus === 'loading') {
1919
return (
20-
<Box mx={2}>
21-
<CircularProgress
22-
className={className}
23-
color="inherit"
24-
data-cy="scenario-validation-status-loading-spinner"
25-
size="15px"
26-
/>
27-
</Box>
20+
<CircularProgress
21+
className={className}
22+
color="inherit"
23+
data-cy="scenario-validation-status-loading-spinner"
24+
size="15px"
25+
/>
2826
);
2927
}
3028

3129
const colorProp = lowerCaseStatus === 'validated' ? 'success' : 'error';
3230

3331
return lowerCaseStatus === 'rejected' || lowerCaseStatus === 'validated' ? (
34-
<Box mx={1}>
35-
<Chip
36-
clickable={false}
37-
data-cy="scenario-validation-status"
38-
label={getLabel()}
39-
onDelete={onDelete}
40-
color={colorProp}
41-
className={className}
42-
/>
43-
</Box>
32+
<Chip
33+
clickable={false}
34+
data-cy="scenario-validation-status"
35+
label={getLabel()}
36+
onDelete={onDelete}
37+
color={colorProp}
38+
className={className}
39+
/>
4440
) : null;
4541
};
4642

0 commit comments

Comments
 (0)