fix react-toastify mounting error

This commit is contained in:
plebbitor
2023-04-04 14:42:22 +02:00
parent a63471aff6
commit 551b7de14d
7 changed files with 91 additions and 57 deletions
-16
View File
@@ -1,16 +0,0 @@
import { toast } from 'react-toastify';
const onError = (error) => {
return toast.error(error.toString(), {
position: "top-right",
autoClose: false,
hideProgressBar: false,
closeOnClick: false,
pauseOnHover: true,
draggable: false,
progress: undefined,
theme: "dark",
});
};
export default onError;
-16
View File
@@ -1,16 +0,0 @@
import { toast } from 'react-toastify';
const onSuccess = (success) => {
return toast.success(success.toString(), {
position: "top-right",
autoClose: 3000,
hideProgressBar: false,
closeOnClick: false,
pauseOnHover: false,
draggable: false,
progress: undefined,
theme: "dark",
});
};
export default onSuccess;