add auth and base functions and fixed bug
This commit is contained in:
10
src/core/utils/successRequest.js
Normal file
10
src/core/utils/successRequest.js
Normal file
@@ -0,0 +1,10 @@
|
||||
'use client'
|
||||
import { toast } from "react-toastify";
|
||||
import { successToast } from "@/core/components/toasts/success";
|
||||
|
||||
export const successRequest = (notification, toastContainer) => {
|
||||
if (notification) {
|
||||
toast.dismiss({ container: toastContainer })
|
||||
successToast(toastContainer)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user