fix: prettier
All checks were successful
Format / formatting (push) Successful in 5s
Build / build (push) Successful in 40s
CI / build (push) Successful in 12s
Format / formatting (pull_request) Successful in 6s

This commit is contained in:
ALAMI Adnane 2025-04-29 00:42:59 +02:00
parent b5637e4552
commit 351727f3d5
4 changed files with 10 additions and 8 deletions

View File

@ -7,7 +7,7 @@ import {
defaultApiSuccessHandler, defaultApiSuccessHandler,
} from "@/services/api"; } from "@/services/api";
// Admin API // Admin API
function getPendingAccounts( function getPendingAccounts(
onSuccessHandler?: (response: AxiosResponse) => void, onSuccessHandler?: (response: AxiosResponse) => void,
onErrorHandler?: (error: AxiosError) => void onErrorHandler?: (error: AxiosError) => void

View File

@ -1,11 +1,13 @@
import { type AxiosError, type AxiosResponse } from "axios"; import { type AxiosError, type AxiosResponse } from "axios";
import Project from "@/ApiClasses/Project"; import Project from "@/ApiClasses/Project";
import SectionCell from "@/ApiClasses/SectionCell"; 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( function requestProjectCreation(
projectDetails: Project, // Replace 'any' with a proper type for project details if available projectDetails: Project, // Replace 'any' with a proper type for project details if available
onSuccessHandler?: (response: AxiosResponse) => void, onSuccessHandler?: (response: AxiosResponse) => void,
@ -35,7 +37,7 @@ function addSectionCell(
onErrorHandler?: (error: AxiosError) => void onErrorHandler?: (error: AxiosError) => void
): void { ): void {
axiosInstance axiosInstance
.post("/entrepreneur/sectionCells", sectionCellDetails.toPlainObject()) .post("/entrepreneur/sectionCells", sectionCellDetails.toPlainObject())
.then((response) => { .then((response) => {
if (onSuccessHandler) { if (onSuccessHandler) {
onSuccessHandler(response); onSuccessHandler(response);

View File

@ -6,7 +6,7 @@ import {
defaultApiSuccessHandler, defaultApiSuccessHandler,
} from "@/services/api"; } from "@/services/api";
// Shared API // Shared API
function getSectionCellsByDate( function getSectionCellsByDate(
projectId: number, projectId: number,
sectionId: number, sectionId: number,

View File

@ -6,7 +6,7 @@ import {
defaultApiSuccessHandler, defaultApiSuccessHandler,
} from "@/services/api"; } from "@/services/api";
// Unauth API // Unauth API
function finalizeAccount( function finalizeAccount(
onSuccessHandler?: (response: AxiosResponse) => void, onSuccessHandler?: (response: AxiosResponse) => void,
onErrorHandler?: (error: AxiosError) => void onErrorHandler?: (error: AxiosError) => void