Skip to content

Commit

Permalink
style(user-detail-editor): margins
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianAndersen committed Jul 5, 2024
1 parent 581a28d commit 8968f17
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/components/user/user-detail-editor/UserDetailEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,18 @@ const UserDetailEditor = ({
</>
)}
<Box component="form" onSubmit={handleSubmit(onSubmit)}>
{Object.entries(errors).map(([type, message]) => (
<Alert
key={type}
severity="error"
data-testid="error-message"
sx={{ marginY: 1 }}
>
{message.message}
</Alert>
))}
<Box mb={2}>
{Object.entries(errors).map(([type, message]) => (
<Alert
key={type}
severity="error"
data-testid="error-message"
sx={{ marginY: 1 }}
>
{message.message}
</Alert>
))}
</Box>
<Grid container spacing={2}>
<Grid item xs={12}>
<Box
Expand Down

0 comments on commit 8968f17

Please sign in to comment.