File tree Expand file tree Collapse file tree
packages/mui-component-mapper/src/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,12 +2,23 @@ import React from 'react';
22import PropTypes from 'prop-types' ;
33
44import 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
1223FormFieldGrid . propTypes = {
1324 children : PropTypes . node
You can’t perform that action at this time.
0 commit comments