formatting

This commit is contained in:
Amirhossein Mahmoodi
2024-08-18 11:11:58 +03:30
parent f7c93d0404
commit f2e199ee8a
40 changed files with 733 additions and 450 deletions

View File

@@ -4,7 +4,7 @@ import { prefixer } from "stylis";
import stylisRTLPlugin from "stylis-plugin-rtl";
import { CacheProvider } from "@emotion/react";
const isBrowser = typeof document !== 'undefined';
const isBrowser = typeof document !== "undefined";
const createEmotionCache = () => {
let insertionPoint;

View File

@@ -19,7 +19,7 @@ const errorServer = (response, notification, toastContainer) => {
const errorClient = (response, notification, toastContainer, logout) => {
switch (response.status) {
case 401:
logout()
logout();
if (notification) errorUnauthorizedToast(toastContainer);
break;
case 422:

View File

@@ -7,4 +7,3 @@ export const flattenArrayOfObjects = (array, key) => {
return acc;
}, []);
};

View File

@@ -9,4 +9,4 @@ export const flattenObjectOfObjects = (obj, res = {}) => {
}
}
return res;
};
};