Skip to content

Commit c0eb8d1

Browse files
Adrinlolagneum
authored andcommitted
fix: bug fixes and improvements for Configurator UI (#410):
* change field names * change form input hierarchy * adjust gap to fix spacing issue for buttons
1 parent 94f78c9 commit c0eb8d1

File tree

4 files changed

+236
-225
lines changed

4 files changed

+236
-225
lines changed

ui/packages/shared/pages/Configuration/ResponseMessage/index.tsx

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Box } from '@material-ui/core'
12
import { makeStyles } from '@material-ui/core/styles'
23
import BlockIcon from '@material-ui/icons/Block'
34
import CheckCircleOutlineIcon from '@material-ui/icons/CheckCircleOutline'
@@ -43,23 +44,25 @@ export const ResponseMessage = ({
4344
const classes = useStyles()
4445

4546
return (
46-
<span
47-
className={
48-
type === 'success' || type === 'ok'
49-
? classes.success
50-
: type === 'warning' || type === 'notice'
51-
? classes.warning
52-
: classes.error
53-
}
54-
>
55-
{type === 'success' || type === 'ok' ? (
56-
<CheckCircleOutlineIcon className={classes.successIcon} />
57-
) : type === 'warning' || type === 'notice' ? (
58-
<WarningIcon className={classes.warningIcon} />
59-
) : (
60-
<BlockIcon className={classes.errorIcon} />
61-
)}
62-
{message}
63-
</span>
47+
<Box mt={1} mb={1}>
48+
<span
49+
className={
50+
type === 'success' || type === 'ok'
51+
? classes.success
52+
: type === 'warning' || type === 'notice'
53+
? classes.warning
54+
: classes.error
55+
}
56+
>
57+
{type === 'success' || type === 'ok' ? (
58+
<CheckCircleOutlineIcon className={classes.successIcon} />
59+
) : type === 'warning' || type === 'notice' ? (
60+
<WarningIcon className={classes.warningIcon} />
61+
) : (
62+
<BlockIcon className={classes.errorIcon} />
63+
)}
64+
{message}
65+
</span>
66+
</Box>
6467
)
6568
}

0 commit comments

Comments
 (0)