mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-09 00:18:00 +01:00
fix: update PR based on feedback
This commit is contained in:
parent
cdbf395aa2
commit
8429ba05a0
@ -79,7 +79,7 @@ export const AddonForm = ({ editMode, provider, addon, fetch }) => {
|
||||
setErrors({ ...errors, events: undefined });
|
||||
};
|
||||
|
||||
const handleCancel = () => {
|
||||
const onCancel = () => {
|
||||
history.goBack();
|
||||
};
|
||||
|
||||
@ -149,7 +149,7 @@ export const AddonForm = ({ editMode, provider, addon, fetch }) => {
|
||||
</a>
|
||||
<p className={commonStyles.error}>{errors.general}</p>
|
||||
</section>
|
||||
<form>
|
||||
<form onSubmit={onSubmit}>
|
||||
<section className={styles.formSection}>
|
||||
<TextField
|
||||
size="small"
|
||||
@ -206,7 +206,9 @@ export const AddonForm = ({ editMode, provider, addon, fetch }) => {
|
||||
<Button type="submit" color="primary" variant="contained">
|
||||
{submitText}
|
||||
</Button>
|
||||
<Button onClick={handleCancel}>Cancel</Button>
|
||||
<Button type="button" onClick={onCancel}>
|
||||
Cancel
|
||||
</Button>
|
||||
</section>
|
||||
</form>
|
||||
</PageContent>
|
||||
|
Loading…
Reference in New Issue
Block a user