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 });
|
setErrors({ ...errors, events: undefined });
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleCancel = () => {
|
const onCancel = () => {
|
||||||
history.goBack();
|
history.goBack();
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -149,7 +149,7 @@ export const AddonForm = ({ editMode, provider, addon, fetch }) => {
|
|||||||
</a>
|
</a>
|
||||||
<p className={commonStyles.error}>{errors.general}</p>
|
<p className={commonStyles.error}>{errors.general}</p>
|
||||||
</section>
|
</section>
|
||||||
<form>
|
<form onSubmit={onSubmit}>
|
||||||
<section className={styles.formSection}>
|
<section className={styles.formSection}>
|
||||||
<TextField
|
<TextField
|
||||||
size="small"
|
size="small"
|
||||||
@ -206,7 +206,9 @@ export const AddonForm = ({ editMode, provider, addon, fetch }) => {
|
|||||||
<Button type="submit" color="primary" variant="contained">
|
<Button type="submit" color="primary" variant="contained">
|
||||||
{submitText}
|
{submitText}
|
||||||
</Button>
|
</Button>
|
||||||
<Button onClick={handleCancel}>Cancel</Button>
|
<Button type="button" onClick={onCancel}>
|
||||||
|
Cancel
|
||||||
|
</Button>
|
||||||
</section>
|
</section>
|
||||||
</form>
|
</form>
|
||||||
</PageContent>
|
</PageContent>
|
||||||
|
Loading…
Reference in New Issue
Block a user