diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-27 19:49:47 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-27 19:49:47 -0700 |
commit | 9bfda9e131ddda3076b4094a94795db41072a39c (patch) | |
tree | d6b4e12f2d62431cc0d320b5396e578944af78f4 /modern/src/EditItemView.js | |
parent | bbc54a464a8a3cf41904c5335fb1845ff8af1887 (diff) | |
download | trackermap-web-9bfda9e131ddda3076b4094a94795db41072a39c.tar.gz trackermap-web-9bfda9e131ddda3076b4094a94795db41072a39c.tar.bz2 trackermap-web-9bfda9e131ddda3076b4094a94795db41072a39c.zip |
Implement attributes editing
Diffstat (limited to 'modern/src/EditItemView.js')
-rw-r--r-- | modern/src/EditItemView.js | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/modern/src/EditItemView.js b/modern/src/EditItemView.js index f67927aa..a6f1d229 100644 --- a/modern/src/EditItemView.js +++ b/modern/src/EditItemView.js @@ -59,19 +59,17 @@ const EditItemView = ({ children, endpoint, setItem, getItem }) => { <> <MainToolbar /> <Container maxWidth='xs' className={classes.container}> - <form> - {children} - <FormControl fullWidth margin='normal'> - <div className={classes.buttons}> - <Button type='button' color='primary' variant='outlined' onClick={() => history.goBack()}> - {t('sharedCancel')} - </Button> - <Button type='button' color='primary' variant='contained' onClick={handleSave}> - {t('sharedSave')} - </Button> - </div> - </FormControl> - </form> + {children} + <FormControl fullWidth margin='normal'> + <div className={classes.buttons}> + <Button type='button' color='primary' variant='outlined' onClick={() => history.goBack()}> + {t('sharedCancel')} + </Button> + <Button type='button' color='primary' variant='contained' onClick={handleSave}> + {t('sharedSave')} + </Button> + </div> + </FormControl> </Container> </> ); |