@@ -10,15 +10,15 @@ import { InputAdornment, Grid } from '@mui/material';
1010
1111export const ProductEditDetails = ( ) => (
1212 < Grid container columnSpacing = { 2 } >
13- < Grid item xs = { 12 } sm = { 8 } >
13+ < Grid size = { { xs : 12 , sm : 8 } } >
1414 < TextInput source = "reference" validate = { req } />
1515 </ Grid >
16- < Grid item xs = { 12 } sm = { 4 } >
16+ < Grid size = { { xs : 12 , sm : 4 } } >
1717 < ReferenceInput source = "category_id" reference = "categories" >
1818 < SelectInput optionText = "name" validate = { req } />
1919 </ ReferenceInput >
2020 </ Grid >
21- < Grid item xs = { 12 } sm = { 4 } >
21+ < Grid size = { { xs : 12 , sm : 4 } } >
2222 < NumberInput
2323 source = "width"
2424 InputProps = { {
@@ -29,7 +29,7 @@ export const ProductEditDetails = () => (
2929 validate = { req }
3030 />
3131 </ Grid >
32- < Grid item xs = { 12 } sm = { 4 } >
32+ < Grid size = { { xs : 12 , sm : 4 } } >
3333 < NumberInput
3434 source = "height"
3535 InputProps = { {
@@ -40,8 +40,8 @@ export const ProductEditDetails = () => (
4040 validate = { req }
4141 />
4242 </ Grid >
43- < Grid item xs = { 0 } sm = { 4 } > </ Grid >
44- < Grid item xs = { 12 } sm = { 4 } >
43+ < Grid size = { { xs : 0 , sm : 48 } } / >
44+ < Grid size = { { xs : 12 , sm : 4 } } >
4545 < NumberInput
4646 source = "price"
4747 InputProps = { {
@@ -52,10 +52,10 @@ export const ProductEditDetails = () => (
5252 validate = { req }
5353 />
5454 </ Grid >
55- < Grid item xs = { 12 } sm = { 4 } >
55+ < Grid size = { { xs : 12 , sm : 4 } } >
5656 < NumberInput source = "stock" validate = { req } />
5757 </ Grid >
58- < Grid item xs = { 12 } sm = { 4 } >
58+ < Grid size = { { xs : 12 , sm : 4 } } >
5959 < NumberInput source = "sales" validate = { req } />
6060 </ Grid >
6161 </ Grid >
0 commit comments