diff --git a/src/backdrops/ArticleCategories/locales.js b/src/backdrops/ArticleCategories/locales.js index f16da3f..d9ea4ba 100644 --- a/src/backdrops/ArticleCategories/locales.js +++ b/src/backdrops/ArticleCategories/locales.js @@ -1,5 +1,5 @@ export * as en from "./locales/en.json"; export * as ru from "./locales/ru.json"; export * as kk from "./locales/kk.json"; -export * as uk from "./locales/uk.json" -export * as pl from "./locales/pl.json" +export * as uk from "./locales/uk.json"; +export * as pl from "./locales/pl.json"; diff --git a/src/hooks/useMarkNotificationsAsRead.js b/src/hooks/useMarkNotificationsAsRead.js index 1f1f123..6e7b057 100644 --- a/src/hooks/useMarkNotificationsAsRead.js +++ b/src/hooks/useMarkNotificationsAsRead.js @@ -10,9 +10,8 @@ export const useMarkNotificationsAsRead = (onError = () => {}) => { * @returns {object} */ const markNotificationsAsRead = async (notificationIds) => { - const { data } = await notificationsSvc.markNotificationsAsRead( - notificationIds - ); + const { data } = + await notificationsSvc.markNotificationsAsRead(notificationIds); return data; }; diff --git a/src/hooks/useSendInformationPortalSuggestion.js b/src/hooks/useSendInformationPortalSuggestion.js index e293944..f8d8456 100644 --- a/src/hooks/useSendInformationPortalSuggestion.js +++ b/src/hooks/useSendInformationPortalSuggestion.js @@ -5,9 +5,8 @@ import { useError } from "./useError"; export const useSendInformationPortalSuggestion = (onError, onSuccess) => { const sendSuggestion = async (suggestion) => { - const response = await clientSvc.sendInformationPortalSuggestion( - suggestion - ); + const response = + await clientSvc.sendInformationPortalSuggestion(suggestion); return response; }; diff --git a/src/services/http.js b/src/services/http.js index a602380..767d79f 100644 --- a/src/services/http.js +++ b/src/services/http.js @@ -18,7 +18,7 @@ axios.interceptors.request.use(async (config) => { config.headers["Cache-Control"] = "no-cache, no-store, must-revalidate"; const requestURI = axios.getUri(config) || "VITE CMS API URL"; - + console.log(requestURI); if (!requestURI.includes(CMS_API_URL_ENDPOINT)) { const token = await localStorage.getItem("token"); config.headers["Authorization"] = `Bearer ${token}`; diff --git a/src/utils/showToast.js b/src/utils/showToast.js index 13c0b88..5a4827e 100644 --- a/src/utils/showToast.js +++ b/src/utils/showToast.js @@ -17,14 +17,14 @@ export const showToast = ({ message, type = "success", autoHide = true }) => { type === "success" ? appStyles.colorGreen_7ec680 : type === "info" - ? appStyles.colorBlue_3d527b - : appStyles.colorRed_eb5757, + ? appStyles.colorBlue_3d527b + : appStyles.colorRed_eb5757, borderBottomColor: type === "success" ? appStyles.colorGreen_54cfd9 : type === "info" - ? appStyles.colorBlue_3d527b - : appStyles.colorRed_cc4c4c, + ? appStyles.colorBlue_3d527b + : appStyles.colorRed_cc4c4c, borderBottomWidth: 1, zIndex: 999, },