Feature/faaliyat rozane cartable

This commit is contained in:
2024-12-23 08:20:46 +00:00
committed by AmirHossein Mahmoodi
parent f2ef4cd1db
commit 4b25071e41
75 changed files with 3722 additions and 236 deletions

View File

@@ -1,6 +1,7 @@
"use client";
import { toast } from "react-toastify";
import {
errorAccessDeniedToast,
errorClientToast,
errorLogicToast,
errorServerToast,
@@ -22,6 +23,9 @@ const errorClient = (response, notification, toastContainer, logout) => {
logout();
if (notification) errorUnauthorizedToast(toastContainer);
break;
case 403:
if (notification) errorAccessDeniedToast(response.data.message, toastContainer);
break;
case 422:
if ("type" in response.data) {
if (Array.isArray(response.data.message)) {