Deskripsi:
- Fix router status job
- Fix hapus job beserta image di server
This commit is contained in:
2024-10-29 16:59:53 +08:00
parent 9bb68b216f
commit 30743b02ae
29 changed files with 301 additions and 420 deletions

View File

@@ -1,8 +0,0 @@
import { LayoutDetailDraftInvestasi } from "@/app_modules/investasi";
import React from "react";
export default async function Layout({children, params}: {children: React.ReactNode, params: {id: string}}) {
return<>
<LayoutDetailDraftInvestasi id={params.id}>{children}</LayoutDetailDraftInvestasi>
</>
}

View File

@@ -1,13 +0,0 @@
import { DetailDraftInvestasi } from "@/app_modules/investasi";
import getOneInvestasiById from "@/app_modules/investasi/fun/get_one_investasi_by_id";
export default async function Page({params}: {params: {id: string}}) {
const dataInvestasi = await getOneInvestasiById(params.id)
return<>
<DetailDraftInvestasi dataInvestasi={dataInvestasi as any}/>
</>
}

View File

@@ -1,9 +0,0 @@
import { LayoutDetailPublishInvestasi } from "@/app_modules/investasi";
import React from "react";
export default async function Layout({children}: {children: React.ReactNode}) {
return<>
<LayoutDetailPublishInvestasi>{children}</LayoutDetailPublishInvestasi>
</>
}

View File

@@ -1,11 +0,0 @@
import { DetailPublishInvestasi } from "@/app_modules/investasi";
import getOneInvestasiById from "@/app_modules/investasi/fun/get_one_investasi_by_id";
export default async function Page({ params }: { params: { id: string } }) {
const dataInvestasi = await getOneInvestasiById(params.id);
return (
<>
<DetailPublishInvestasi dataInvestasi={dataInvestasi as any} />
</>
);
}

View File

@@ -1,18 +0,0 @@
import { LayoutDetailRejectInvestasi } from "@/app_modules/investasi";
import React from "react";
export default async function Layout({
children,
params,
}: {
children: React.ReactNode;
params: { id: string };
}) {
return (
<>
<LayoutDetailRejectInvestasi idInves={params.id}>
{children}
</LayoutDetailRejectInvestasi>
</>
);
}

View File

@@ -1,10 +0,0 @@
import { DetailRejectInvestasi } from "@/app_modules/investasi";
import getOneInvestasiById from "@/app_modules/investasi/fun/get_one_investasi_by_id";
export default async function Page({params}: {params: {id: string}}) {
const dataInvestasi = await getOneInvestasiById(params.id)
// console.log(dataInvestasi)
return<>
<DetailRejectInvestasi dataInvestasi={dataInvestasi as any}/>
</>
}

View File

@@ -1,8 +0,0 @@
import { LayoutDetailReviewInvestasi } from "@/app_modules/investasi";
import React from "react";
export default async function Layout({children}: {children: React.ReactNode}) {
return<>
<LayoutDetailReviewInvestasi>{children}</LayoutDetailReviewInvestasi>
</>
}

View File

@@ -1,12 +0,0 @@
import { DetailReviewInvestasi } from "@/app_modules/investasi";
import getOneInvestasiById from "@/app_modules/investasi/fun/get_one_investasi_by_id";
export default async function Page({params}:{params : {id: string}}) {
const dataInvestasi = await getOneInvestasiById(params.id)
// console.log(dataInvestasi)
return<>
<DetailReviewInvestasi dataInvestasi={dataInvestasi as any}/>
</>
}

View File

@@ -0,0 +1,23 @@
import { Job_Status } from "@/app_modules/job";
import { job_funGetAllByStatusId } from "@/app_modules/job/fun";
import { job_funGetMasterStatus } from "@/app_modules/job/fun/get/get_master_status";
export default async function Page({ params }: { params: { id: string } }) {
let statusId = params.id;
const dataJob = await job_funGetAllByStatusId({
page: 1,
statusId: statusId,
});
const listStatus = await job_funGetMasterStatus();
return (
<>
<Job_Status
statusId={statusId}
dataJob={dataJob}
listStatus={listStatus as any}
/>
</>
);
}

View File

@@ -1,23 +0,0 @@
import { Job_Status } from "@/app_modules/job";
import job_getAllStatusDraft from "@/app_modules/job/fun/get/status/get_list_draft";
import job_getAllStatusPublish from "@/app_modules/job/fun/get/status/get_list_publish";
import job_getAllStatusReject from "@/app_modules/job/fun/get/status/get_list_reject";
import job_getAllStatusReview from "@/app_modules/job/fun/get/status/get_list_review";
export default async function Page() {
const listPublish = await job_getAllStatusPublish({page: 1});
const listReview = await job_getAllStatusReview({ page: 1 });
const listDraft = await job_getAllStatusDraft({ page: 1 });
const listReject = await job_getAllStatusReject({page: 1});
return (
<>
<Job_Status
listDraft={listDraft as any}
listPublish={listPublish as any}
listReject={listReject as any}
listReview={listReview as any}
/>
</>
);
}