fix: prettier
This commit is contained in:
parent
b5637e4552
commit
351727f3d5
@ -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
|
||||||
|
@ -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);
|
||||||
|
@ -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,
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user