Skip to content

Commit 174b076

Browse files
authored
Merge pull request #381 from rvsia/rebaseMasterVolume3
Rebase master to V2 vol. 3
2 parents c3d8cb7 + 7c5b3d1 commit 174b076

File tree

10 files changed

+3827
-68
lines changed

10 files changed

+3827
-68
lines changed

packages/mui-component-mapper/src/common/form-field-grid.js

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,23 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33

44
import Grid from '@material-ui/core/Grid';
5+
import { makeStyles } from '@material-ui/core/styles';
56

6-
const FormFieldGrid = ({ children, ...props }) => (
7-
<Grid xs={12} item style={{ marginBottom: 16, padding: 0 }} {...props}>
8-
{children}
9-
</Grid>
10-
);
7+
const useFinalFormFieldStyles = makeStyles({
8+
grid: {
9+
position: 'relative'
10+
}
11+
});
12+
13+
const FormFieldGrid = ({ children, ...props }) => {
14+
const classes = useFinalFormFieldStyles();
15+
16+
return (
17+
<Grid xs={12} item style={{ marginBottom: 16, padding: 0 }} className={classes.grid} {...props}>
18+
{children}
19+
</Grid>
20+
);
21+
};
1122

1223
FormFieldGrid.propTypes = {
1324
children: PropTypes.node

0 commit comments

Comments
 (0)