File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
packages/mui-component-mapper/src/common Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,23 @@ import React from 'react';
2
2
import PropTypes from 'prop-types' ;
3
3
4
4
import Grid from '@material-ui/core/Grid' ;
5
+ import { makeStyles } from '@material-ui/core/styles' ;
5
6
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
+ } ;
11
22
12
23
FormFieldGrid . propTypes = {
13
24
children : PropTypes . node
You can’t perform that action at this time.
0 commit comments