File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ import {
33
33
TableRow ,
34
34
Tooltip
35
35
} from '@mui/material' ;
36
- import { Grid , Hidden , Typography } from '@mui/material' ;
36
+ import { Grid , Typography } from '@mui/material' ;
37
37
import AddIcon from '@mui/icons-material/Add' ;
38
38
import ValidationIcon from './ValidationIcon' ;
39
39
import NoBorderTableCell from './NoBorderTableCell' ;
@@ -77,14 +77,14 @@ const TableToolbar = React.memo(
77
77
< Typography variant = { 'h6' } > { label } </ Typography >
78
78
</ Grid >
79
79
< Grid item >
80
- < Hidden smUp = { errors . length === 0 } >
80
+ { errors . length !== 0 &&
81
81
< Grid item >
82
82
< ValidationIcon
83
83
id = 'tooltip-validation'
84
84
errorMessages = { errors }
85
85
/>
86
86
</ Grid >
87
- </ Hidden >
87
+ }
88
88
</ Grid >
89
89
</ Grid >
90
90
</ NoBorderTableCell >
Original file line number Diff line number Diff line change 1
1
import {
2
2
Grid ,
3
3
IconButton ,
4
- Hidden ,
5
4
Toolbar ,
6
5
Tooltip ,
7
6
Typography
@@ -30,11 +29,11 @@ export const ArrayLayoutToolbar = React.memo(
30
29
< Grid item >
31
30
< Typography variant = { 'h6' } > { label } </ Typography >
32
31
</ Grid >
33
- < Hidden smUp = { errors . length === 0 } >
32
+ { errors . length !== 0 &&
34
33
< Grid item >
35
34
< ValidationIcon id = 'tooltip-validation' errorMessages = { errors } />
36
35
</ Grid >
37
- </ Hidden >
36
+ }
38
37
< Grid item >
39
38
< Grid container >
40
39
< Grid item >
You can’t perform that action at this time.
0 commit comments