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'
12import { makeStyles } from '@material-ui/core/styles'
23import BlockIcon from '@material-ui/icons/Block'
34import 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}
You can’t perform that action at this time.
0 commit comments