Add: - app/(application)/(user)/event/[id]/confirmation.tsx - screens/Admin/Event/ - service/api-admin/api-admin-event.ts Fix: - app.config.js : penambahan DEEP_LINK_URL untuk url QR Code - app/(application)/(user)/event/create.tsx - app/(application)/admin/event/[id]/[status]/index.tsx - app/(application)/admin/event/[id]/reject-input.tsx - app/(application)/admin/event/[status]/status.tsx - app/(application)/admin/event/index.tsx - app/(application)/admin/job/[id]/[status]/index.tsx - screens/Admin/listPageAdmin.tsx - service/api-config.ts - ### No Issue
23 lines
493 B
TypeScript
23 lines
493 B
TypeScript
import { apiAdminEventUpdateStatus } from "@/service/api-admin/api-admin-event";
|
|
|
|
export const funUpdateStatusEvent = async ({
|
|
id,
|
|
changeStatus,
|
|
data,
|
|
}: {
|
|
id: string;
|
|
changeStatus: "publish" | "review" | "reject";
|
|
data?: string;
|
|
}) => {
|
|
try {
|
|
const response = await apiAdminEventUpdateStatus({
|
|
id: id,
|
|
changeStatus: changeStatus as any,
|
|
data: data,
|
|
});
|
|
return response;
|
|
} catch (error) {
|
|
console.log("[ERROR]", error);
|
|
throw error;
|
|
}
|
|
}; |