fix responsive admin collaboration
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import { AdminColab_TablePublish } from "@/app_modules/admin/colab";
|
import { AdminColab_TablePublish } from "@/app_modules/admin/colab";
|
||||||
import adminColab_getListAllPublish from "@/app_modules/admin/colab/fun/get/get_list_all_publish";
|
|
||||||
|
|
||||||
export default async function Page() {
|
export default async function Page() {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { AdminColab_TableRejected } from "@/app_modules/admin/colab";
|
import { AdminColab_TableRejected } from "@/app_modules/admin/colab";
|
||||||
import adminColab_getListAllRejected from "@/app_modules/admin/colab/fun/get/get_list_all_reject";
|
|
||||||
|
|
||||||
export default async function Page() {
|
export default async function Page() {
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,22 @@
|
|||||||
import { MainColor } from "@/app_modules/_global/color";
|
import { MainColor } from "@/app_modules/_global/color";
|
||||||
import { Grid, Text } from "@mantine/core";
|
import { Grid, Text } from "@mantine/core";
|
||||||
|
|
||||||
export function Admin_V3_ComponentDetail({ item }: { item: Record<string, any> }) {
|
export function Admin_V3_ComponentDetail({
|
||||||
|
item,
|
||||||
|
}: {
|
||||||
|
item: Record<string, any>;
|
||||||
|
}) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Grid m={0} bg={MainColor.soft_darkblue}>
|
<Grid m={0} bg={MainColor.soft_darkblue}>
|
||||||
<Grid.Col lg={3} md={3} sm={3} xs={3} span={4}>
|
<Grid.Col lg={3} md={3} sm={3} xs={3} span={4}>
|
||||||
<Text fw={"bold"}>{item.title}</Text>
|
<Text fw={"bold"}>{item.title || item.label}</Text>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
|
|
||||||
<Grid.Col span={"auto"}>
|
<Grid.Col span={"auto"}>
|
||||||
<Text>{item.value}</Text>
|
<Text>
|
||||||
|
{item.value}
|
||||||
|
</Text>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
</Grid>
|
</Grid>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -2,13 +2,15 @@ import { SimpleGrid } from "@mantine/core";
|
|||||||
|
|
||||||
export function Admin_V3_ComponentBreakpoint({
|
export function Admin_V3_ComponentBreakpoint({
|
||||||
children,
|
children,
|
||||||
|
cols
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
|
cols?: number;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<SimpleGrid
|
<SimpleGrid
|
||||||
cols={2}
|
cols={cols || 2}
|
||||||
breakpoints={[
|
breakpoints={[
|
||||||
{ maxWidth: "sm", cols: 1 },
|
{ maxWidth: "sm", cols: 1 },
|
||||||
{ maxWidth: "md", cols: 1 },
|
{ maxWidth: "md", cols: 1 },
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
||||||
import { SimpleGrid } from "@mantine/core";
|
import { SimpleGrid } from "@mantine/core";
|
||||||
|
|
||||||
export function Admin_V3_ComponentSkeletonBreakpoint() {
|
export function Admin_V3_ComponentSkeletonBreakpoint({
|
||||||
|
skeletonRequest,
|
||||||
|
}: {
|
||||||
|
skeletonRequest?: number;
|
||||||
|
}) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<SimpleGrid
|
<SimpleGrid
|
||||||
@@ -12,7 +16,9 @@ export function Admin_V3_ComponentSkeletonBreakpoint() {
|
|||||||
{ maxWidth: "lg", cols: 1 },
|
{ maxWidth: "lg", cols: 1 },
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<CustomSkeleton height={500} width={"100%"} />
|
{Array.from({ length: skeletonRequest || 1 }, (_, index) => (
|
||||||
|
<CustomSkeleton key={index} height={500} width={"100%"} />
|
||||||
|
))}
|
||||||
</SimpleGrid>
|
</SimpleGrid>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -22,6 +22,9 @@ import ComponentAdminGlobal_HeaderTamplate from "../../_admin_global/header_tamp
|
|||||||
import { apiGetAdminCollaborationGroupById } from "../lib/api_fetch_admin_collaboration";
|
import { apiGetAdminCollaborationGroupById } from "../lib/api_fetch_admin_collaboration";
|
||||||
import { Admin_ComponentBoxStyle } from "../../_admin_global/_component/comp_admin_boxstyle";
|
import { Admin_ComponentBoxStyle } from "../../_admin_global/_component/comp_admin_boxstyle";
|
||||||
import { IconCaretRight } from "@tabler/icons-react";
|
import { IconCaretRight } from "@tabler/icons-react";
|
||||||
|
import { Admin_V3_ComponentSkeletonBreakpoint } from "../../_components_v3/comp_skeleton_breakpoint";
|
||||||
|
import { Admin_V3_ComponentBreakpoint } from "../../_components_v3/comp_simple_grid_breakpoint";
|
||||||
|
import { Admin_V3_ComponentDetail } from "../../_components_v3/comp_detail_data";
|
||||||
|
|
||||||
function DetailGroup() {
|
function DetailGroup() {
|
||||||
const params = useParams<{ id: string }>();
|
const params = useParams<{ id: string }>();
|
||||||
@@ -84,11 +87,10 @@ function DetailGroup() {
|
|||||||
<ComponentAdminGlobal_HeaderTamplate name={`Detail group`} />
|
<ComponentAdminGlobal_HeaderTamplate name={`Detail group`} />
|
||||||
<AdminGlobal_ComponentBackButton />
|
<AdminGlobal_ComponentBackButton />
|
||||||
|
|
||||||
<Grid>
|
|
||||||
<Grid.Col span={6}>
|
|
||||||
{!data ? (
|
{!data ? (
|
||||||
<CustomSkeleton height={"50vh"} width={"100%"} />
|
<Admin_V3_ComponentSkeletonBreakpoint skeletonRequest={2} />
|
||||||
) : (
|
) : (
|
||||||
|
<Admin_V3_ComponentBreakpoint>
|
||||||
<Admin_ComponentBoxStyle
|
<Admin_ComponentBoxStyle
|
||||||
style={{
|
style={{
|
||||||
height: 500,
|
height: 500,
|
||||||
@@ -97,17 +99,7 @@ function DetailGroup() {
|
|||||||
<ScrollArea h={450} scrollbarSize={"md"}>
|
<ScrollArea h={450} scrollbarSize={"md"}>
|
||||||
<Stack spacing={"xs"}>
|
<Stack spacing={"xs"}>
|
||||||
{listData.map((e, i) => (
|
{listData.map((e, i) => (
|
||||||
<Grid c={"white"} key={i}>
|
<Admin_V3_ComponentDetail key={i} item={e}/>
|
||||||
<Grid.Col span={4}>
|
|
||||||
<Text c={AdminColor.white} fw={"bold"}>
|
|
||||||
{e.label}
|
|
||||||
</Text>
|
|
||||||
</Grid.Col>
|
|
||||||
<Grid.Col span={1}>:</Grid.Col>
|
|
||||||
<Grid.Col span={"auto"}>
|
|
||||||
<Text c={AdminColor.white}>{e.value}</Text>
|
|
||||||
</Grid.Col>
|
|
||||||
</Grid>
|
|
||||||
))}
|
))}
|
||||||
|
|
||||||
{/* <Group position="center">
|
{/* <Group position="center">
|
||||||
@@ -127,13 +119,7 @@ function DetailGroup() {
|
|||||||
</Stack>
|
</Stack>
|
||||||
</ScrollArea>
|
</ScrollArea>
|
||||||
</Admin_ComponentBoxStyle>
|
</Admin_ComponentBoxStyle>
|
||||||
)}
|
|
||||||
</Grid.Col>
|
|
||||||
|
|
||||||
<Grid.Col span={6}>
|
|
||||||
{!data ? (
|
|
||||||
<CustomSkeleton height={"50vh"} width={"100%"} />
|
|
||||||
) : (
|
|
||||||
<Admin_ComponentBoxStyle
|
<Admin_ComponentBoxStyle
|
||||||
style={{
|
style={{
|
||||||
height: 500,
|
height: 500,
|
||||||
@@ -151,13 +137,17 @@ function DetailGroup() {
|
|||||||
|
|
||||||
<Stack spacing={0} w={"70%"}>
|
<Stack spacing={0} w={"70%"}>
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.Col span={3} fw={"bold"}>Username</Grid.Col>
|
<Grid.Col span={3} fw={"bold"}>
|
||||||
|
Username
|
||||||
|
</Grid.Col>
|
||||||
<Grid.Col span={1}>:</Grid.Col>
|
<Grid.Col span={1}>:</Grid.Col>
|
||||||
<Grid.Col span={8}>{e.User.username}</Grid.Col>
|
<Grid.Col span={8}>{e.User.username}</Grid.Col>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.Col span={3} fw={"bold"}>Name</Grid.Col>
|
<Grid.Col span={3} fw={"bold"}>
|
||||||
|
Name
|
||||||
|
</Grid.Col>
|
||||||
<Grid.Col span={1}>:</Grid.Col>
|
<Grid.Col span={1}>:</Grid.Col>
|
||||||
<Grid.Col span={8}>{e.User.Profile.name}</Grid.Col>
|
<Grid.Col span={8}>{e.User.Profile.name}</Grid.Col>
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -167,9 +157,8 @@ function DetailGroup() {
|
|||||||
</ScrollArea>
|
</ScrollArea>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Admin_ComponentBoxStyle>
|
</Admin_ComponentBoxStyle>
|
||||||
|
</Admin_V3_ComponentBreakpoint>
|
||||||
)}
|
)}
|
||||||
</Grid.Col>
|
|
||||||
</Grid>
|
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import React, { useState } from "react";
|
import { AdminColor } from "@/app_modules/_global/color/color_pallet";
|
||||||
import AdminGlobal_ComponentBackButton from "../../_admin_global/back_button";
|
import { ComponentGlobal_NotifikasiPeringatan } from "@/app_modules/_global/notif_global";
|
||||||
|
import { MODEL_COLLABORATION } from "@/app_modules/colab/model/interface";
|
||||||
|
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
||||||
|
import { clientLogger } from "@/util/clientLogger";
|
||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
Flex,
|
|
||||||
Grid,
|
Grid,
|
||||||
Group,
|
Group,
|
||||||
Modal,
|
Modal,
|
||||||
@@ -13,20 +15,19 @@ import {
|
|||||||
Stack,
|
Stack,
|
||||||
Text,
|
Text,
|
||||||
Textarea,
|
Textarea,
|
||||||
Title,
|
|
||||||
} from "@mantine/core";
|
} from "@mantine/core";
|
||||||
import { useParams, useRouter } from "next/navigation";
|
|
||||||
import { MODEL_COLLABORATION } from "@/app_modules/colab/model/interface";
|
|
||||||
import { useShallowEffect } from "@mantine/hooks";
|
import { useShallowEffect } from "@mantine/hooks";
|
||||||
import { clientLogger } from "@/util/clientLogger";
|
|
||||||
import { apiGetAdminCollaborationById } from "../lib/api_fetch_admin_collaboration";
|
|
||||||
import { AdminColor } from "@/app_modules/_global/color/color_pallet";
|
|
||||||
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
|
||||||
import { ComponentGlobal_NotifikasiPeringatan } from "@/app_modules/_global/notif_global";
|
|
||||||
import { IconCheck, IconFlag2Off } from "@tabler/icons-react";
|
import { IconCheck, IconFlag2Off } from "@tabler/icons-react";
|
||||||
|
import { useParams, useRouter } from "next/navigation";
|
||||||
|
import { useState } from "react";
|
||||||
|
import { Admin_ComponentBoxStyle } from "../../_admin_global/_component/comp_admin_boxstyle";
|
||||||
|
import AdminGlobal_ComponentBackButton from "../../_admin_global/back_button";
|
||||||
import ComponentAdminGlobal_HeaderTamplate from "../../_admin_global/header_tamplate";
|
import ComponentAdminGlobal_HeaderTamplate from "../../_admin_global/header_tamplate";
|
||||||
import adminColab_funReportProjectById from "../fun/edit/fun_report_project_by_id";
|
import adminColab_funReportProjectById from "../fun/edit/fun_report_project_by_id";
|
||||||
import { Admin_ComponentBoxStyle } from "../../_admin_global/_component/comp_admin_boxstyle";
|
import { apiGetAdminCollaborationById } from "../lib/api_fetch_admin_collaboration";
|
||||||
|
import { Admin_V3_ComponentSkeletonBreakpoint } from "../../_components_v3/comp_skeleton_breakpoint";
|
||||||
|
import { Admin_V3_ComponentBreakpoint } from "../../_components_v3/comp_simple_grid_breakpoint";
|
||||||
|
import { Admin_V3_ComponentDetail } from "../../_components_v3/comp_detail_data";
|
||||||
|
|
||||||
function DetailPublish() {
|
function DetailPublish() {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
@@ -57,7 +58,7 @@ function DetailPublish() {
|
|||||||
|
|
||||||
async function onReject() {
|
async function onReject() {
|
||||||
try {
|
try {
|
||||||
setLoading(true)
|
setLoading(true);
|
||||||
const response = await adminColab_funReportProjectById({
|
const response = await adminColab_funReportProjectById({
|
||||||
colabId: params.id,
|
colabId: params.id,
|
||||||
report: report,
|
report: report,
|
||||||
@@ -111,25 +112,14 @@ function DetailPublish() {
|
|||||||
<ComponentAdminGlobal_HeaderTamplate name={`Detail publish`} />
|
<ComponentAdminGlobal_HeaderTamplate name={`Detail publish`} />
|
||||||
<AdminGlobal_ComponentBackButton />
|
<AdminGlobal_ComponentBackButton />
|
||||||
|
|
||||||
|
|
||||||
<SimpleGrid cols={2}>
|
|
||||||
{!data ? (
|
{!data ? (
|
||||||
<CustomSkeleton height={"50vh"} width={"100%"} />
|
<Admin_V3_ComponentSkeletonBreakpoint />
|
||||||
) : (
|
) : (
|
||||||
|
<Admin_V3_ComponentBreakpoint >
|
||||||
<Admin_ComponentBoxStyle>
|
<Admin_ComponentBoxStyle>
|
||||||
<Stack spacing={"xs"}>
|
<Stack >
|
||||||
{listData.map((e, i) => (
|
{listData.map((e, i) => (
|
||||||
<Grid c={"white"} key={i}>
|
<Admin_V3_ComponentDetail key={i} item={e}/>
|
||||||
<Grid.Col span={4}>
|
|
||||||
<Text c={AdminColor.white} fw={"bold"}>
|
|
||||||
{e.label}
|
|
||||||
</Text>
|
|
||||||
</Grid.Col>
|
|
||||||
<Grid.Col span={1}>:</Grid.Col>
|
|
||||||
<Grid.Col span={"auto"}>
|
|
||||||
<Text c={AdminColor.white}>{e.value}</Text>
|
|
||||||
</Grid.Col>
|
|
||||||
</Grid>
|
|
||||||
))}
|
))}
|
||||||
|
|
||||||
<Group position="center">
|
<Group position="center">
|
||||||
@@ -148,8 +138,8 @@ function DetailPublish() {
|
|||||||
</Group>
|
</Group>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Admin_ComponentBoxStyle>
|
</Admin_ComponentBoxStyle>
|
||||||
|
</Admin_V3_ComponentBreakpoint>
|
||||||
)}
|
)}
|
||||||
</SimpleGrid>
|
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
{/* Reject Project */}
|
{/* Reject Project */}
|
||||||
|
|||||||
@@ -27,6 +27,9 @@ import { IconCheck, IconFlag2Off } from "@tabler/icons-react";
|
|||||||
import ComponentAdminGlobal_HeaderTamplate from "../../_admin_global/header_tamplate";
|
import ComponentAdminGlobal_HeaderTamplate from "../../_admin_global/header_tamplate";
|
||||||
import adminColab_funReportProjectById from "../fun/edit/fun_report_project_by_id";
|
import adminColab_funReportProjectById from "../fun/edit/fun_report_project_by_id";
|
||||||
import { Admin_ComponentBoxStyle } from "../../_admin_global/_component/comp_admin_boxstyle";
|
import { Admin_ComponentBoxStyle } from "../../_admin_global/_component/comp_admin_boxstyle";
|
||||||
|
import { Admin_V3_ComponentBreakpoint } from "../../_components_v3/comp_simple_grid_breakpoint";
|
||||||
|
import { Admin_V3_ComponentSkeletonBreakpoint } from "../../_components_v3/comp_skeleton_breakpoint";
|
||||||
|
import { Admin_V3_ComponentDetail } from "../../_components_v3/comp_detail_data";
|
||||||
|
|
||||||
function DetailReject() {
|
function DetailReject() {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
@@ -55,24 +58,24 @@ function DetailReject() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// async function onReject() {
|
// async function onReject() {
|
||||||
// try {
|
// try {
|
||||||
// setLoading(true);
|
// setLoading(true);
|
||||||
// const response = await adminColab_funReportProjectById({
|
// const response = await adminColab_funReportProjectById({
|
||||||
// colabId: params.id,
|
// colabId: params.id,
|
||||||
// report: report,
|
// report: report,
|
||||||
// });
|
// });
|
||||||
|
|
||||||
// if (response.status == 200) {
|
// if (response.status == 200) {
|
||||||
// setLoading(false);
|
// setLoading(false);
|
||||||
// router.back();
|
// router.back();
|
||||||
// }
|
// }
|
||||||
// } catch (error) {
|
// } catch (error) {
|
||||||
// setLoading(false);
|
// setLoading(false);
|
||||||
// ComponentGlobal_NotifikasiPeringatan("Gagal Load");
|
// ComponentGlobal_NotifikasiPeringatan("Gagal Load");
|
||||||
// clientLogger.error("Invalid report collaboration", error);
|
// clientLogger.error("Invalid report collaboration", error);
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
const listData = [
|
const listData = [
|
||||||
{
|
{
|
||||||
@@ -115,30 +118,19 @@ function DetailReject() {
|
|||||||
<ComponentAdminGlobal_HeaderTamplate name={`Detail reject`} />
|
<ComponentAdminGlobal_HeaderTamplate name={`Detail reject`} />
|
||||||
<AdminGlobal_ComponentBackButton />
|
<AdminGlobal_ComponentBackButton />
|
||||||
|
|
||||||
<SimpleGrid cols={2}>
|
|
||||||
{!data ? (
|
{!data ? (
|
||||||
<CustomSkeleton height={"50vh"} width={"100%"} />
|
<Admin_V3_ComponentSkeletonBreakpoint />
|
||||||
) : (
|
) : (
|
||||||
|
<Admin_V3_ComponentBreakpoint cols={1}>
|
||||||
<Admin_ComponentBoxStyle>
|
<Admin_ComponentBoxStyle>
|
||||||
<Stack spacing={"xs"}>
|
<Stack spacing={"xs"}>
|
||||||
{listData.map((e, i) => (
|
{listData.map((e, i) => (
|
||||||
<Grid c={"white"} key={i}>
|
<Admin_V3_ComponentDetail key={i} item={e}/>
|
||||||
<Grid.Col span={4}>
|
|
||||||
<Text c={AdminColor.white} fw={"bold"}>
|
|
||||||
{e.label}
|
|
||||||
</Text>
|
|
||||||
</Grid.Col>
|
|
||||||
<Grid.Col span={1}>:</Grid.Col>
|
|
||||||
<Grid.Col span={"auto"}>
|
|
||||||
<Text c={AdminColor.white}>{e.value}</Text>
|
|
||||||
</Grid.Col>
|
|
||||||
</Grid>
|
|
||||||
))}
|
))}
|
||||||
|
|
||||||
</Stack>
|
</Stack>
|
||||||
</Admin_ComponentBoxStyle>
|
</Admin_ComponentBoxStyle>
|
||||||
|
</Admin_V3_ComponentBreakpoint>
|
||||||
)}
|
)}
|
||||||
</SimpleGrid>
|
|
||||||
</Stack>
|
</Stack>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,38 +1,30 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import {
|
|
||||||
Stack,
|
|
||||||
Group,
|
|
||||||
Title,
|
|
||||||
Paper,
|
|
||||||
ScrollArea,
|
|
||||||
Table,
|
|
||||||
Center,
|
|
||||||
Text,
|
|
||||||
Badge,
|
|
||||||
Spoiler,
|
|
||||||
Pagination,
|
|
||||||
Button,
|
|
||||||
Modal,
|
|
||||||
SimpleGrid,
|
|
||||||
Box,
|
|
||||||
} from "@mantine/core";
|
|
||||||
import ComponentAdminGlobal_HeaderTamplate from "../../_admin_global/header_tamplate";
|
|
||||||
import {
|
|
||||||
MODEL_COLLABORATION,
|
|
||||||
MODEL_COLLABORATION_ROOM_CHAT,
|
|
||||||
} from "@/app_modules/colab/model/interface";
|
|
||||||
import { IconBan, IconCircleDot, IconEye } from "@tabler/icons-react";
|
|
||||||
import { useState } from "react";
|
|
||||||
import adminColab_getOneByColabId from "../fun/get/get_one_by_colab_id";
|
|
||||||
import { ComponentGlobal_NotifikasiGagal } from "@/app_modules/_global/notif_global/notifikasi_gagal";
|
|
||||||
import ComponentAdminColab_DetailData from "../component/detail_data";
|
|
||||||
import adminColab_getOneRoomChatById from "../fun/get/get_one_room_chat_by_id";
|
|
||||||
import adminColab_getListAllGroupChat from "../fun/get/get_list_all_group_chat";
|
|
||||||
import { ComponentAdminGlobal_TitlePage } from "../../_admin_global/_component";
|
|
||||||
import { AccentColor } from "@/app_modules/_global/color";
|
import { AccentColor } from "@/app_modules/_global/color";
|
||||||
import { AdminColor } from "@/app_modules/_global/color/color_pallet";
|
import { AdminColor } from "@/app_modules/_global/color/color_pallet";
|
||||||
|
import { ComponentGlobal_NotifikasiGagal } from "@/app_modules/_global/notif_global/notifikasi_gagal";
|
||||||
|
import { MODEL_COLLABORATION_ROOM_CHAT } from "@/app_modules/colab/model/interface";
|
||||||
|
import {
|
||||||
|
Box,
|
||||||
|
Center,
|
||||||
|
Modal,
|
||||||
|
Paper,
|
||||||
|
ScrollArea,
|
||||||
|
SimpleGrid,
|
||||||
|
Stack,
|
||||||
|
Table,
|
||||||
|
Text,
|
||||||
|
Title
|
||||||
|
} from "@mantine/core";
|
||||||
|
import { IconCircleDot } from "@tabler/icons-react";
|
||||||
|
import { useState } from "react";
|
||||||
|
import { ComponentAdminGlobal_TitlePage } from "../../_admin_global/_component";
|
||||||
import Admin_DetailButton from "../../_admin_global/_component/button/detail_button";
|
import Admin_DetailButton from "../../_admin_global/_component/button/detail_button";
|
||||||
|
import ComponentAdminGlobal_HeaderTamplate from "../../_admin_global/header_tamplate";
|
||||||
|
import { Admin_V3_ComponentPaginationBreakpoint } from "../../_components_v3/comp_pagination_breakpoint";
|
||||||
|
import ComponentAdminColab_DetailData from "../component/detail_data";
|
||||||
|
import adminColab_getListAllGroupChat from "../fun/get/get_list_all_group_chat";
|
||||||
|
import adminColab_getOneRoomChatById from "../fun/get/get_one_room_chat_by_id";
|
||||||
|
|
||||||
export default function AdminColab_TableGroup({
|
export default function AdminColab_TableGroup({
|
||||||
listGroup,
|
listGroup,
|
||||||
@@ -84,31 +76,31 @@ function TableMenu({ listGroup }: { listGroup: any }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const tableRow = data.map((e, i) => (
|
const tableRow = data.map((e, i) => (
|
||||||
<tr key={i}>
|
<tr key={i} style={{ color: AdminColor.white }}>
|
||||||
<td>
|
{/* <td>
|
||||||
<Center c={AdminColor.white}>{noAwal++}</Center>
|
<Center c={AdminColor.white}>{noAwal++}</Center>
|
||||||
</td>
|
</td> */}
|
||||||
<td>
|
<td>
|
||||||
<Center c={AdminColor.white}>
|
<Box w={150}>
|
||||||
<Text lineClamp={1}>
|
<Text lineClamp={1}>
|
||||||
{e?.ProjectCollaboration?.Author?.Profile?.name}
|
{e?.ProjectCollaboration?.Author?.Profile?.name}
|
||||||
</Text>
|
</Text>
|
||||||
</Center>
|
</Box>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<Center c={AdminColor.white}>
|
<Box w={150}>
|
||||||
<Text lineClamp={1}>{e?.name}</Text>
|
<Text lineClamp={1}>{e?.name}</Text>
|
||||||
</Center>
|
</Box>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<Center c={AdminColor.white}>
|
<Box w={150}>
|
||||||
<Text>
|
<Text>
|
||||||
{e?.ProjectCollaboration?.ProjectCollaborationMaster_Industri?.name}
|
{e?.ProjectCollaboration?.ProjectCollaborationMaster_Industri?.name}
|
||||||
</Text>
|
</Text>
|
||||||
</Center>
|
</Box>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<Center c={AdminColor.white}>
|
<Center>
|
||||||
<Text>{e?.ProjectCollaboration_AnggotaRoomChat.length}</Text>
|
<Text>{e?.ProjectCollaboration_AnggotaRoomChat.length}</Text>
|
||||||
</Center>
|
</Center>
|
||||||
</td>
|
</td>
|
||||||
@@ -118,36 +110,6 @@ function TableMenu({ listGroup }: { listGroup: any }) {
|
|||||||
<Admin_DetailButton
|
<Admin_DetailButton
|
||||||
path={`/dev/admin/colab/detail/group/${e.id}`}
|
path={`/dev/admin/colab/detail/group/${e.id}`}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* <Button
|
|
||||||
loading={
|
|
||||||
idProject === e?.id ? (loadingDetail ? true : false) : false
|
|
||||||
}
|
|
||||||
leftIcon={<IconEye />}
|
|
||||||
loaderPosition="center"
|
|
||||||
radius={"xl"}
|
|
||||||
color="green"
|
|
||||||
onClick={() => {
|
|
||||||
onDetailData(e?.id);
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Detail 1
|
|
||||||
</Button> */}
|
|
||||||
|
|
||||||
{/* <Button
|
|
||||||
// loading={
|
|
||||||
// idProject === e?.id ? (loadingReject ? true : false) : false
|
|
||||||
// }
|
|
||||||
leftIcon={<IconBan />}
|
|
||||||
loaderPosition="center"
|
|
||||||
radius={"xl"}
|
|
||||||
color="red"
|
|
||||||
// onClick={() => {
|
|
||||||
// onRejected(e.id);
|
|
||||||
// }}
|
|
||||||
>
|
|
||||||
Reject
|
|
||||||
</Button> */}
|
|
||||||
</Stack>
|
</Stack>
|
||||||
</Center>
|
</Center>
|
||||||
</td>
|
</td>
|
||||||
@@ -168,17 +130,17 @@ function TableMenu({ listGroup }: { listGroup: any }) {
|
|||||||
<Table verticalSpacing={"xs"} horizontalSpacing={"md"} p={"md"}>
|
<Table verticalSpacing={"xs"} horizontalSpacing={"md"} p={"md"}>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
{/* <th>
|
||||||
<Center c={AdminColor.white}>No</Center>
|
<Center c={AdminColor.white}>No</Center>
|
||||||
|
</th> */}
|
||||||
|
<th>
|
||||||
|
<Text c={AdminColor.white}>Admin Room</Text>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<Center c={AdminColor.white}>Admin Room</Center>
|
<Text c={AdminColor.white}>Nama Group</Text>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<Center c={AdminColor.white}>Nama Group</Center>
|
<Text c={AdminColor.white}>Industri</Text>
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
<Center c={AdminColor.white}>Industri</Center>
|
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<Center c={AdminColor.white}>Anggota Group</Center>
|
<Center c={AdminColor.white}>Anggota Group</Center>
|
||||||
@@ -191,8 +153,7 @@ function TableMenu({ listGroup }: { listGroup: any }) {
|
|||||||
<tbody>{tableRow}</tbody>
|
<tbody>{tableRow}</tbody>
|
||||||
</Table>
|
</Table>
|
||||||
</ScrollArea>
|
</ScrollArea>
|
||||||
<Pagination
|
<Admin_V3_ComponentPaginationBreakpoint
|
||||||
position="center"
|
|
||||||
total={isNPage}
|
total={isNPage}
|
||||||
value={activePage}
|
value={activePage}
|
||||||
onChange={(val) => {
|
onChange={(val) => {
|
||||||
@@ -246,7 +207,6 @@ function TableMenu({ listGroup }: { listGroup: any }) {
|
|||||||
</Paper>
|
</Paper>
|
||||||
</SimpleGrid>
|
</SimpleGrid>
|
||||||
</Modal>
|
</Modal>
|
||||||
{/* <pre>{JSON.stringify(detailData, null, 2)}</pre> */}
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,42 +1,31 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import { AdminColor } from "@/app_modules/_global/color/color_pallet";
|
||||||
|
import { MODEL_COLLABORATION } from "@/app_modules/colab/model/interface";
|
||||||
import {
|
import {
|
||||||
Stack,
|
Box,
|
||||||
|
Button,
|
||||||
|
Center,
|
||||||
Group,
|
Group,
|
||||||
Title,
|
Pagination,
|
||||||
Paper,
|
Paper,
|
||||||
ScrollArea,
|
ScrollArea,
|
||||||
|
Stack,
|
||||||
Table,
|
Table,
|
||||||
Center,
|
|
||||||
Text,
|
Text,
|
||||||
Badge,
|
Title,
|
||||||
Spoiler,
|
|
||||||
Pagination,
|
|
||||||
Button,
|
|
||||||
Modal,
|
|
||||||
TextInput,
|
|
||||||
Textarea,
|
|
||||||
Box,
|
|
||||||
} from "@mantine/core";
|
} from "@mantine/core";
|
||||||
import ComponentAdminGlobal_HeaderTamplate from "../../_admin_global/header_tamplate";
|
import { useShallowEffect } from "@mantine/hooks";
|
||||||
import { MODEL_COLLABORATION } from "@/app_modules/colab/model/interface";
|
import { IconEye } from "@tabler/icons-react";
|
||||||
import { useState } from "react";
|
|
||||||
import { useDisclosure, useShallowEffect } from "@mantine/hooks";
|
|
||||||
import adminColab_getListAllPublish from "../fun/get/get_list_all_publish";
|
|
||||||
import ComponentAdminColab_DetailData from "../component/detail_data";
|
|
||||||
import adminColab_getOneByColabId from "../fun/get/get_one_by_colab_id";
|
|
||||||
import { ComponentGlobal_NotifikasiPeringatan } from "@/app_modules/_global/notif_global/notifikasi_peringatan";
|
|
||||||
import _ from "lodash";
|
|
||||||
import { IconBan, IconCheck, IconEye } from "@tabler/icons-react";
|
|
||||||
import adminColab_funReportProjectById from "../fun/edit/fun_report_project_by_id";
|
|
||||||
import { ComponentGlobal_NotifikasiBerhasil } from "@/app_modules/_global/notif_global/notifikasi_berhasil";
|
|
||||||
import { AdminColor } from "@/app_modules/_global/color/color_pallet";
|
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
|
import { useState } from "react";
|
||||||
|
import ComponentAdminGlobal_HeaderTamplate from "../../_admin_global/header_tamplate";
|
||||||
|
|
||||||
import { clientLogger } from "@/util/clientLogger";
|
|
||||||
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
||||||
import { apiGetAdminCollaborationPublish } from "../lib/api_fetch_admin_collaboration";
|
|
||||||
import { RouterAdminColab } from "@/lib/router_admin/router_admin_colab";
|
import { RouterAdminColab } from "@/lib/router_admin/router_admin_colab";
|
||||||
|
import { clientLogger } from "@/util/clientLogger";
|
||||||
|
import { apiGetAdminCollaborationPublish } from "../lib/api_fetch_admin_collaboration";
|
||||||
|
import { Admin_V3_ComponentPaginationBreakpoint } from "../../_components_v3/comp_pagination_breakpoint";
|
||||||
|
|
||||||
export default function AdminColab_TablePublish() {
|
export default function AdminColab_TablePublish() {
|
||||||
return (
|
return (
|
||||||
@@ -65,24 +54,24 @@ function TableMenu() {
|
|||||||
try {
|
try {
|
||||||
const response = await apiGetAdminCollaborationPublish({
|
const response = await apiGetAdminCollaborationPublish({
|
||||||
page: `${activePage}`,
|
page: `${activePage}`,
|
||||||
})
|
});
|
||||||
|
|
||||||
if (response?.success && response?.data?.data) {
|
if (response?.success && response?.data?.data) {
|
||||||
setData(response.data.data);
|
setData(response.data.data);
|
||||||
setNPage(response.data.nPage || 1);
|
setNPage(response.data.nPage || 1);
|
||||||
} else {
|
} else {
|
||||||
console.error("Invalid data format recieved", response);
|
console.error("Invalid data format recieved", response);
|
||||||
setData([])
|
setData([]);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
clientLogger.error("Invalid data table publish", error);
|
clientLogger.error("Invalid data table publish", error);
|
||||||
setData([]);
|
setData([]);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
const onPageCLick = (page: number) => {
|
const onPageCLick = (page: number) => {
|
||||||
setActivePage(page);
|
setActivePage(page);
|
||||||
}
|
};
|
||||||
|
|
||||||
const renderTableBody = () => {
|
const renderTableBody = () => {
|
||||||
if (!Array.isArray(data) || data.length === 0) {
|
if (!Array.isArray(data) || data.length === 0) {
|
||||||
@@ -94,29 +83,32 @@ function TableMenu() {
|
|||||||
</Center>
|
</Center>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return data.map((e, i) => (
|
return data.map((e, i) => (
|
||||||
<tr key={i}>
|
<tr
|
||||||
|
key={i}
|
||||||
|
style={{
|
||||||
|
color: AdminColor.white,
|
||||||
|
}}
|
||||||
|
>
|
||||||
<td>
|
<td>
|
||||||
<Center c={AdminColor.white}>
|
<Box w={150}>
|
||||||
<Text lineClamp={1}>{e?.Author?.Profile?.name}</Text>
|
<Text lineClamp={1}>
|
||||||
</Center>
|
{e?.Author?.username}
|
||||||
</td>
|
</Text>
|
||||||
<td>
|
|
||||||
<Center c={AdminColor.white}>
|
|
||||||
<Box>
|
|
||||||
<Center c={AdminColor.white}>
|
|
||||||
<Text lineClamp={1}>{e?.title}</Text>
|
|
||||||
</Center>
|
|
||||||
</Box>
|
</Box>
|
||||||
</Center>
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<Center c={AdminColor.white}>
|
<Box w={150}>
|
||||||
|
<Text lineClamp={1}>{e?.title}</Text>
|
||||||
|
</Box>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<Box w={150}>
|
||||||
<Text>{e?.ProjectCollaborationMaster_Industri.name}</Text>
|
<Text>{e?.ProjectCollaborationMaster_Industri.name}</Text>
|
||||||
</Center>
|
</Box>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<Center c={AdminColor.white}>
|
<Center c={AdminColor.white}>
|
||||||
@@ -143,7 +135,7 @@ function TableMenu() {
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
));
|
));
|
||||||
}
|
};
|
||||||
|
|
||||||
// async function onReport() {
|
// async function onReport() {
|
||||||
// if (report === "")
|
// if (report === "")
|
||||||
@@ -184,25 +176,20 @@ function TableMenu() {
|
|||||||
{!data ? (
|
{!data ? (
|
||||||
<CustomSkeleton height={"80vh"} width={"100%"} />
|
<CustomSkeleton height={"80vh"} width={"100%"} />
|
||||||
) : (
|
) : (
|
||||||
<Paper p={"md"} bg={AdminColor.softBlue} >
|
<Paper p={"md"} bg={AdminColor.softBlue}>
|
||||||
<Stack>
|
<Stack>
|
||||||
<ScrollArea h={"65vh"}>
|
<ScrollArea h={"65vh"}>
|
||||||
<Table
|
<Table verticalSpacing={"xs"} horizontalSpacing={"md"} p={"md"}>
|
||||||
verticalSpacing={"xs"}
|
|
||||||
horizontalSpacing={"md"}
|
|
||||||
p={"md"}
|
|
||||||
|
|
||||||
>
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
<Center c={AdminColor.white}>Username</Center>
|
<Text c={AdminColor.white}>Username</Text>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<Center c={AdminColor.white}>Title</Center>
|
<Text c={AdminColor.white}>Title</Text>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<Center c={AdminColor.white}>Industri</Center>
|
<Text c={AdminColor.white}>Industri</Text>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<Center c={AdminColor.white}>Jumlah Partisipan</Center>
|
<Center c={AdminColor.white}>Jumlah Partisipan</Center>
|
||||||
@@ -215,8 +202,7 @@ function TableMenu() {
|
|||||||
<tbody>{renderTableBody()}</tbody>
|
<tbody>{renderTableBody()}</tbody>
|
||||||
</Table>
|
</Table>
|
||||||
</ScrollArea>
|
</ScrollArea>
|
||||||
<Pagination
|
<Admin_V3_ComponentPaginationBreakpoint
|
||||||
position="center"
|
|
||||||
total={isNPage}
|
total={isNPage}
|
||||||
value={activePage}
|
value={activePage}
|
||||||
onChange={(val) => {
|
onChange={(val) => {
|
||||||
|
|||||||
@@ -1,31 +1,27 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import { AdminColor } from "@/app_modules/_global/color/color_pallet";
|
||||||
|
import { MODEL_COLLABORATION } from "@/app_modules/colab/model/interface";
|
||||||
|
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
||||||
|
import { clientLogger } from "@/util/clientLogger";
|
||||||
import {
|
import {
|
||||||
Stack,
|
Box,
|
||||||
|
Center,
|
||||||
Group,
|
Group,
|
||||||
Title,
|
Pagination,
|
||||||
Paper,
|
Paper,
|
||||||
ScrollArea,
|
ScrollArea,
|
||||||
|
Stack,
|
||||||
Table,
|
Table,
|
||||||
Center,
|
|
||||||
Text,
|
Text,
|
||||||
Badge,
|
Title,
|
||||||
Spoiler,
|
|
||||||
Box,
|
|
||||||
Pagination,
|
|
||||||
Button,
|
|
||||||
} from "@mantine/core";
|
} from "@mantine/core";
|
||||||
import ComponentAdminGlobal_HeaderTamplate from "../../_admin_global/header_tamplate";
|
|
||||||
import { useState } from "react";
|
|
||||||
import { MODEL_COLLABORATION } from "@/app_modules/colab/model/interface";
|
|
||||||
import adminColab_getListAllRejected from "../fun/get/get_list_all_reject";
|
|
||||||
import { AdminColor } from "@/app_modules/_global/color/color_pallet";
|
|
||||||
import { clientLogger } from "@/util/clientLogger";
|
|
||||||
import { useShallowEffect } from "@mantine/hooks";
|
import { useShallowEffect } from "@mantine/hooks";
|
||||||
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
import { useState } from "react";
|
||||||
import { IconEye } from "@tabler/icons-react";
|
|
||||||
import { apiGetAdminCollaborationReject } from "../lib/api_fetch_admin_collaboration";
|
|
||||||
import Admin_DetailButton from "../../_admin_global/_component/button/detail_button";
|
import Admin_DetailButton from "../../_admin_global/_component/button/detail_button";
|
||||||
|
import ComponentAdminGlobal_HeaderTamplate from "../../_admin_global/header_tamplate";
|
||||||
|
import { apiGetAdminCollaborationReject } from "../lib/api_fetch_admin_collaboration";
|
||||||
|
import { Admin_V3_ComponentPaginationBreakpoint } from "../../_components_v3/comp_pagination_breakpoint";
|
||||||
|
|
||||||
export default function AdminColab_TableRejected() {
|
export default function AdminColab_TableRejected() {
|
||||||
return (
|
return (
|
||||||
@@ -41,35 +37,32 @@ function TableMenu() {
|
|||||||
const [data, setData] = useState<MODEL_COLLABORATION[] | null>(null);
|
const [data, setData] = useState<MODEL_COLLABORATION[] | null>(null);
|
||||||
const [isNPage, setNPage] = useState<number>(1);
|
const [isNPage, setNPage] = useState<number>(1);
|
||||||
const [activePage, setActivePage] = useState(1);
|
const [activePage, setActivePage] = useState(1);
|
||||||
const [loading, setLoading] = useState(false);
|
|
||||||
const [idData, setIdData] = useState("");
|
|
||||||
|
|
||||||
useShallowEffect(() => {
|
useShallowEffect(() => {
|
||||||
loadInitialData()
|
loadInitialData();
|
||||||
}, [activePage])
|
}, [activePage]);
|
||||||
const loadInitialData = async () => {
|
const loadInitialData = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await apiGetAdminCollaborationReject({
|
const response = await apiGetAdminCollaborationReject({
|
||||||
page: `${activePage}`,
|
page: `${activePage}`,
|
||||||
})
|
});
|
||||||
|
|
||||||
if (response?.success && response?.data?.data) {
|
if (response?.success && response?.data?.data) {
|
||||||
setData(response.data.data);
|
setData(response.data.data);
|
||||||
setNPage(response.data.nPage || 1);
|
setNPage(response.data.nPage || 1);
|
||||||
} else {
|
} else {
|
||||||
console.error("Invalid data format recieved", response);
|
console.error("Invalid data format recieved", response);
|
||||||
setData([])
|
setData([]);
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
clientLogger.error("Error get data table reject", error);
|
clientLogger.error("Error get data table reject", error);
|
||||||
setData([]);
|
setData([]);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
const onPageClick = (page: number) => {
|
const onPageClick = (page: number) => {
|
||||||
setActivePage(page);
|
setActivePage(page);
|
||||||
}
|
};
|
||||||
|
|
||||||
const renderTableBody = () => {
|
const renderTableBody = () => {
|
||||||
if (!Array.isArray(data) || data.length === 0) {
|
if (!Array.isArray(data) || data.length === 0) {
|
||||||
@@ -81,31 +74,27 @@ function TableMenu() {
|
|||||||
</Center>
|
</Center>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return data.map((e, i) => (
|
return data.map((e, i) => (
|
||||||
<tr key={i}>
|
<tr key={i} style={{ color: AdminColor.white }}>
|
||||||
<td>
|
<td>
|
||||||
<Center c={AdminColor.white}>
|
<Box w={150}>
|
||||||
<Text lineClamp={1}>{e?.Author.username}</Text>
|
<Text lineClamp={1}>{e?.Author.username}</Text>
|
||||||
</Center>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td>
|
|
||||||
<Center c={AdminColor.white}>
|
|
||||||
<Box>
|
|
||||||
<Center c={AdminColor.white}>
|
|
||||||
<Text lineClamp={1}>{e?.title}</Text>
|
|
||||||
</Center>
|
|
||||||
</Box>
|
</Box>
|
||||||
</Center>
|
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<Center c={AdminColor.white}>
|
<Box w={150} c={AdminColor.white}>
|
||||||
|
<Text lineClamp={1}>{e?.title}</Text>
|
||||||
|
</Box>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td>
|
||||||
|
<Box w={150} c={AdminColor.white}>
|
||||||
<Text>{e?.ProjectCollaborationMaster_Industri.name}</Text>
|
<Text>{e?.ProjectCollaborationMaster_Industri.name}</Text>
|
||||||
</Center>
|
</Box>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
@@ -115,25 +104,14 @@ function TableMenu() {
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<Center>
|
<Center>
|
||||||
{/* <Button
|
<Admin_DetailButton
|
||||||
loading={loading && e?.id == idData ? true : false}
|
path={`/dev/admin/colab/detail/reject/${e.id}`}
|
||||||
leftIcon={<IconEye />}
|
/>
|
||||||
loaderPosition="center"
|
|
||||||
radius={"xl"}
|
|
||||||
color="green"
|
|
||||||
onClick={() => {
|
|
||||||
setLoading(true);
|
|
||||||
setIdData(e.id);
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Detail
|
|
||||||
</Button> */}
|
|
||||||
<Admin_DetailButton path={`/dev/admin/colab/detail/reject/${e.id}`} />
|
|
||||||
</Center>
|
</Center>
|
||||||
</td>
|
</td>
|
||||||
</tr >
|
</tr>
|
||||||
));
|
));
|
||||||
}
|
};
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Stack spacing={"xs"}>
|
<Stack spacing={"xs"}>
|
||||||
@@ -143,7 +121,9 @@ function TableMenu() {
|
|||||||
p={"xs"}
|
p={"xs"}
|
||||||
style={{ borderRadius: "6px" }}
|
style={{ borderRadius: "6px" }}
|
||||||
>
|
>
|
||||||
<Title c={AdminColor.white} order={4}>Reject</Title>
|
<Title c={AdminColor.white} order={4}>
|
||||||
|
Reject
|
||||||
|
</Title>
|
||||||
</Group>
|
</Group>
|
||||||
{!data ? (
|
{!data ? (
|
||||||
<CustomSkeleton height={"80vh"} width={"100%"} />
|
<CustomSkeleton height={"80vh"} width={"100%"} />
|
||||||
@@ -151,22 +131,17 @@ function TableMenu() {
|
|||||||
<Paper p={"md"} bg={AdminColor.softBlue}>
|
<Paper p={"md"} bg={AdminColor.softBlue}>
|
||||||
<Stack>
|
<Stack>
|
||||||
<ScrollArea h={"65vh"}>
|
<ScrollArea h={"65vh"}>
|
||||||
<Table
|
<Table verticalSpacing={"lg"} horizontalSpacing={"md"} p={"md"}>
|
||||||
verticalSpacing={"lg"}
|
|
||||||
horizontalSpacing={"md"}
|
|
||||||
p={"md"}
|
|
||||||
|
|
||||||
>
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
<Center c={AdminColor.white}>Username</Center>
|
<Text c={AdminColor.white}>Username</Text>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<Center c={AdminColor.white}>Title</Center>
|
<Text c={AdminColor.white}>Title</Text>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<Center c={AdminColor.white}>Industri</Center>
|
<Text c={AdminColor.white}>Industri</Text>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<Center c={AdminColor.white}>Jumlah Partisipan</Center>
|
<Center c={AdminColor.white}>Jumlah Partisipan</Center>
|
||||||
@@ -179,10 +154,9 @@ function TableMenu() {
|
|||||||
<tbody>{renderTableBody()}</tbody>
|
<tbody>{renderTableBody()}</tbody>
|
||||||
</Table>
|
</Table>
|
||||||
</ScrollArea>
|
</ScrollArea>
|
||||||
<Pagination
|
<Admin_V3_ComponentPaginationBreakpoint
|
||||||
position="center"
|
|
||||||
total={isNPage}
|
|
||||||
value={activePage}
|
value={activePage}
|
||||||
|
total={isNPage}
|
||||||
onChange={(val) => {
|
onChange={(val) => {
|
||||||
onPageClick(val);
|
onPageClick(val);
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user