fix: collaboration

deskripsi:
- fix: use server pada create dan edit menjadi API
This commit is contained in:
2025-05-26 17:15:46 +08:00
parent b9db3f6e02
commit 5007827d51
10 changed files with 231 additions and 141 deletions

View File

@@ -1,21 +1,9 @@
import { Colab_Edit } from "@/app_modules/colab";
import colab_getOneCollaborationById from "@/app_modules/colab/fun/get/get_one_by_id";
import colab_funGetMasterIndustri from "@/app_modules/colab/fun/master/fun_get_master_industri";
import _ from "lodash";
export default async function Page({ params }: { params: { id: string } }) {
const colabId = params.id;
const dataColab = await colab_getOneCollaborationById(colabId);
const selectedData = _.omit(dataColab, [
"ProjectCollaboration_Partisipasi",
"Author",
]);
// console.log(selectedData);
const listIndustri = await colab_funGetMasterIndustri()
export default async function Page() {
return (
<>
<Colab_Edit selectedData={selectedData as any} listIndustri={listIndustri as any} />
<Colab_Edit />
</>
);
}

View File

@@ -1,12 +1,9 @@
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
import { Colab_Beranda } from "@/app_modules/colab";
export default async function Page() {
const userLoginId = await funGetUserIdByToken();
export default function Page() {
return (
<>
<Colab_Beranda userLoginId={userLoginId as string} />
<Colab_Beranda />
</>
);
}

View File

@@ -1,7 +1,6 @@
import Colab_GrupDiskus from "@/app_modules/colab/main/grup";
export default async function Page() {
// const listRoom = await colab_getListRoomChatByAuthorId({page: 1});
export default function Page() {
return (
<>
<Colab_GrupDiskus />

View File

@@ -1,9 +1,6 @@
import { Colab_Proyek } from "@/app_modules/colab";
export default async function Page() {
// const listPartisipasiProyek = await colab_getListPartisipasiProyekByAuthorId({page: 1})
// const listProyekSaya = await colab_getListAllProyekSayaByAuthorId({page: 1})
export default function Page() {
return (
<>
<Colab_Proyek />