This commit is contained in:
2026-04-17 18:01:19 +07:00
parent 5b6b59dc01
commit 9d35fd3653
6 changed files with 467 additions and 258 deletions

29
src/service/handler.ts Normal file
View File

@@ -0,0 +1,29 @@
export const statusConfig: Record<string, { container: string; dot: string }> = {
PENDING: {
container: `
bg-amber-50
border-amber-200
text-amber-700
shadow-sm
`,
dot: "bg-amber-500",
},
APPROVED: {
container: `
bg-emerald-50
border-emerald-200
text-emerald-700
shadow-sm
`,
dot: "bg-emerald-500",
},
REJECTED: {
container: `
bg-red-50
border-red-200
text-red-700
shadow-sm
`,
dot: "bg-red-500",
},
};

View File

@@ -10,3 +10,8 @@ export const apiGetUserApplications = async (payload :any) => {
const response = await api.get(API.Historian.APPLICATION, { params: payload });
return response?.data;
};
export const apiDeleteHistorianCV = async (id: number | string) => {
const response = await api.delete(API.Historian.DELETE_CV(id));
return response?.data;
};