added success toast

This commit is contained in:
plebbitor
2023-03-15 17:34:31 +01:00
parent 92e34fa5e8
commit 59cffb9dfc
5 changed files with 35 additions and 15 deletions
+16
View File
@@ -0,0 +1,16 @@
import { toast } from 'react-toastify';
const onSuccess = (success) => {
return toast.success(success.toString(), {
position: "top-right",
autoClose: 3000,
hideProgressBar: false,
closeOnClick: false,
pauseOnHover: true,
draggable: false,
progress: undefined,
theme: "dark",
});
};
export default onSuccess;