From cdbf395aa226f0f8d7be59fbe73db0a1a9ec7e42 Mon Sep 17 00:00:00 2001 From: Youssef Date: Wed, 23 Feb 2022 01:29:28 +0100 Subject: [PATCH] fix: remove toast when clicking cancel --- .../src/component/addons/AddonForm/AddonForm.jsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/src/component/addons/AddonForm/AddonForm.jsx b/frontend/src/component/addons/AddonForm/AddonForm.jsx index d47e76c6d1..fce897feb1 100644 --- a/frontend/src/component/addons/AddonForm/AddonForm.jsx +++ b/frontend/src/component/addons/AddonForm/AddonForm.jsx @@ -1,7 +1,7 @@ -import React, { useState, useEffect } from 'react'; +import { useState, useEffect } from 'react'; import PropTypes from 'prop-types'; -import { TextField, FormControlLabel, Switch } from '@material-ui/core'; -import { FormButtons, styles as commonStyles } from '../../common'; +import { TextField, FormControlLabel, Switch, Button } from '@material-ui/core'; +import { styles as commonStyles } from '../../common'; import { trim } from '../../common/util'; import { AddonParameters } from './AddonParameters/AddonParameters'; import { AddonEvents } from './AddonEvents/AddonEvents'; @@ -149,7 +149,7 @@ export const AddonForm = ({ editMode, provider, addon, fetch }) => {

{errors.general}

-
+
{ />
- + +