update
This commit is contained in:
29
src/service/handler.ts
Normal file
29
src/service/handler.ts
Normal 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",
|
||||
},
|
||||
};
|
||||
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user