mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix react-toastify mounting error
This commit is contained in:
@@ -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;
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user