fix: collaboration
deskripsi: - fix: use server pada create dan edit menjadi API
This commit is contained in:
@@ -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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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 />
|
||||
|
||||
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user