File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed
packages/mui-component-mapper/src/files Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,22 @@ import FormTemplate from '@data-driven-forms/common/src/form-template';
8
8
const useStyles = makeStyles ( ( ) => ( {
9
9
buttonGroup : {
10
10
display : 'flex' ,
11
- justifyContent : 'flex-end'
11
+ justifyContent : 'flex-end' ,
12
+ '&>button:not(last-child)' : {
13
+ marginLeft : 8
14
+ }
12
15
}
13
16
} ) ) ;
14
17
15
- const Form = ( { children, ...props } ) => < form { ...props } > { children } </ form > ;
18
+ const Form = ( { children, ...props } ) => (
19
+ < Grid item xs = { 12 } >
20
+ < form { ...props } >
21
+ < Grid container item spacing = { 2 } xs = { 12 } >
22
+ { children }
23
+ </ Grid >
24
+ </ form >
25
+ </ Grid >
26
+ ) ;
16
27
17
28
Form . propTypes = {
18
29
children : PropTypes . node
@@ -44,7 +55,11 @@ Title.propTypes = {
44
55
45
56
const ButtonGroup = ( { children } ) => {
46
57
const classes = useStyles ( ) ;
47
- return < div className = { classes . buttonGroup } > { children } </ div > ;
58
+ return (
59
+ < Grid item xs = { 12 } >
60
+ < div className = { classes . buttonGroup } > { children } </ div >
61
+ </ Grid >
62
+ ) ;
48
63
} ;
49
64
50
65
ButtonGroup . propTypes = {
You can’t perform that action at this time.
0 commit comments