Skip to content

Commit

Permalink
Fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
georgipavlov-7DIGIT committed Nov 28, 2024
1 parent 90f4c08 commit 5a9a768
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/backdrops/ArticleCategories/locales.js
Original file line number Diff line number Diff line change
@@ -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";
5 changes: 2 additions & 3 deletions src/hooks/useMarkNotificationsAsRead.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down
5 changes: 2 additions & 3 deletions src/hooks/useSendInformationPortalSuggestion.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down
2 changes: 1 addition & 1 deletion src/services/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down
8 changes: 4 additions & 4 deletions src/utils/showToast.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 5a9a768

Please sign in to comment.