Fix: - android/app/src/main/AndroidManifest.xml - app/(application)/(user)/job/(tabs)/_layout.tsx - app/(application)/(user)/job/[id]/index.tsx - app/(application)/(user)/notifications/index.tsx - app/(application)/(user)/profile/[id]/index.tsx - app/(application)/admin/job/[id]/[status]/index.tsx - app/(application)/admin/notification/index.tsx - app/+not-found.tsx - ios/HIPMIBadungConnect.xcodeproj/project.pbxproj - screens/Admin/Job/funUpdateStatus.ts - screens/Home/bottomFeatureSection.tsx ### No Issue
31 lines
576 B
TypeScript
31 lines
576 B
TypeScript
import { apiAdminJobUpdate } from "@/service/api-admin/api-admin-job";
|
|
|
|
const funUpdateStatusJob = async ({
|
|
id,
|
|
changeStatus,
|
|
data,
|
|
}: {
|
|
id: string;
|
|
changeStatus: "publish" | "review" | "reject";
|
|
data: {
|
|
catatan?: string;
|
|
senderId: string;
|
|
};
|
|
}) => {
|
|
try {
|
|
const fixData = data;
|
|
const response = await apiAdminJobUpdate({
|
|
id: id,
|
|
status: changeStatus as any,
|
|
data: fixData as any,
|
|
});
|
|
|
|
return response;
|
|
} catch (error) {
|
|
console.log("[ERROR]", error);
|
|
throw error;
|
|
}
|
|
};
|
|
|
|
export default funUpdateStatusJob;
|