File tree Expand file tree Collapse file tree 4 files changed +236
-225
lines changed
ui/packages/shared/pages/Configuration Expand file tree Collapse file tree 4 files changed +236
-225
lines changed Original file line number Diff line number Diff line change
1
+ import { Box } from '@material-ui/core'
1
2
import { makeStyles } from '@material-ui/core/styles'
2
3
import BlockIcon from '@material-ui/icons/Block'
3
4
import CheckCircleOutlineIcon from '@material-ui/icons/CheckCircleOutline'
@@ -43,23 +44,25 @@ export const ResponseMessage = ({
43
44
const classes = useStyles ( )
44
45
45
46
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 >
64
67
)
65
68
}
You can’t perform that action at this time.
0 commit comments