fix: make save buttons always shows up prior to cancel buttons

fix: make all save buttons of submit type
This commit is contained in:
Liordino Neto 2020-09-30 17:43:27 -03:00 committed by Josh Harvey
parent 7da522b1da
commit b39692e6f7
3 changed files with 13 additions and 12 deletions

View file

@ -43,14 +43,15 @@ const ActionCol = ({ disabled, editing }) => {
{editing && (
<Td textAlign="center" width={actionColSize}>
<Link
className={classes.cancelButton}
color="secondary"
onClick={resetForm}>
Cancel
</Link>
<Link color="primary" onClick={submitForm}>
className={classes.saveButton}
type="submit"
color="primary"
onClick={submitForm}>
Save
</Link>
<Link color="secondary" onClick={resetForm}>
Cancel
</Link>
</Td>
)}
{!editing && enableEdit && (