fix: make save buttons always shows up prior to cancel buttons
fix: make all save buttons of submit type
This commit is contained in:
parent
7da522b1da
commit
b39692e6f7
3 changed files with 13 additions and 12 deletions
|
|
@ -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 && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue