From 351727f3d5eca5a03a0d0737574271211f52faa0 Mon Sep 17 00:00:00 2001 From: ALAMI Adnane Date: Tue, 29 Apr 2025 00:42:59 +0200 Subject: [PATCH] fix: prettier --- front/MyINPulse-front/src/services/Apis/Admin.ts | 2 +- .../src/services/Apis/Entrepreneurs.ts | 12 +++++++----- front/MyINPulse-front/src/services/Apis/Shared.ts | 2 +- front/MyINPulse-front/src/services/Apis/Unauth.ts | 2 +- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/front/MyINPulse-front/src/services/Apis/Admin.ts b/front/MyINPulse-front/src/services/Apis/Admin.ts index 2483943..bc279f0 100644 --- a/front/MyINPulse-front/src/services/Apis/Admin.ts +++ b/front/MyINPulse-front/src/services/Apis/Admin.ts @@ -7,7 +7,7 @@ import { defaultApiSuccessHandler, } from "@/services/api"; -// Admin API +// Admin API function getPendingAccounts( onSuccessHandler?: (response: AxiosResponse) => void, onErrorHandler?: (error: AxiosError) => void diff --git a/front/MyINPulse-front/src/services/Apis/Entrepreneurs.ts b/front/MyINPulse-front/src/services/Apis/Entrepreneurs.ts index 9a3282d..ce0dd1b 100644 --- a/front/MyINPulse-front/src/services/Apis/Entrepreneurs.ts +++ b/front/MyINPulse-front/src/services/Apis/Entrepreneurs.ts @@ -1,11 +1,13 @@ import { type AxiosError, type AxiosResponse } from "axios"; import Project from "@/ApiClasses/Project"; import SectionCell from "@/ApiClasses/SectionCell"; -import { axiosInstance, defaultApiErrorHandler, defaultApiSuccessHandler } from "@/services/api" +import { + axiosInstance, + defaultApiErrorHandler, + defaultApiSuccessHandler, +} from "@/services/api"; - - -// Entrepreneurs API +// Entrepreneurs API function requestProjectCreation( projectDetails: Project, // Replace 'any' with a proper type for project details if available onSuccessHandler?: (response: AxiosResponse) => void, @@ -35,7 +37,7 @@ function addSectionCell( onErrorHandler?: (error: AxiosError) => void ): void { axiosInstance - .post("/entrepreneur/sectionCells", sectionCellDetails.toPlainObject()) + .post("/entrepreneur/sectionCells", sectionCellDetails.toPlainObject()) .then((response) => { if (onSuccessHandler) { onSuccessHandler(response); diff --git a/front/MyINPulse-front/src/services/Apis/Shared.ts b/front/MyINPulse-front/src/services/Apis/Shared.ts index 9850287..b6cef9b 100644 --- a/front/MyINPulse-front/src/services/Apis/Shared.ts +++ b/front/MyINPulse-front/src/services/Apis/Shared.ts @@ -6,7 +6,7 @@ import { defaultApiSuccessHandler, } from "@/services/api"; -// Shared API +// Shared API function getSectionCellsByDate( projectId: number, sectionId: number, diff --git a/front/MyINPulse-front/src/services/Apis/Unauth.ts b/front/MyINPulse-front/src/services/Apis/Unauth.ts index 229c3d0..032502d 100644 --- a/front/MyINPulse-front/src/services/Apis/Unauth.ts +++ b/front/MyINPulse-front/src/services/Apis/Unauth.ts @@ -6,7 +6,7 @@ import { defaultApiSuccessHandler, } from "@/services/api"; -// Unauth API +// Unauth API function finalizeAccount( onSuccessHandler?: (response: AxiosResponse) => void, onErrorHandler?: (error: AxiosError) => void