added error pop-up

This commit is contained in:
plebbitor
2023-03-13 22:15:57 +01:00
parent c66a782e53
commit ca304d9f23
7 changed files with 49 additions and 13 deletions
+16
View File
@@ -0,0 +1,16 @@
import { toast } from 'react-toastify';
const onError = (error) => {
return toast.error(error.toString(), {
position: "bottom-center",
autoClose: false,
hideProgressBar: false,
closeOnClick: false,
pauseOnHover: true,
draggable: false,
progress: undefined,
theme: "dark",
});
};
export default onError;