Fix notifikasi server action to API

This commit is contained in:
2024-12-19 06:34:12 +08:00
parent 6bb690e0b5
commit 2322ab8444
43 changed files with 507 additions and 1031 deletions

View File

@@ -0,0 +1,3 @@
import { Collaboration_SkeletonCreate } from "./skeleton_view";
export { Collaboration_SkeletonCreate };

View File

@@ -0,0 +1,4 @@
export async function apiGetMasterCollaboration() {
const data = await fetch(`/api/collaboration/master`);
return await data.json().catch(() => null);
}

View File

@@ -0,0 +1,28 @@
import { Skeleton, Stack } from "@mantine/core";
export function Collaboration_SkeletonCreate() {
return (
<>
<Stack px={"xl"} spacing={"lg"}>
<Stack spacing={"xs"}>
<Skeleton height={10} width={50} />
<Skeleton height={40} />
</Stack>
<Stack spacing={"xs"}>
<Skeleton height={10} width={50} />
<Skeleton height={40} />
</Stack>
<Stack spacing={"xs"}>
<Skeleton height={10} width={50} />
<Skeleton height={130} />
</Stack>
<Stack spacing={"xs"}>
<Skeleton height={10} width={50} />
<Skeleton height={130} />
</Stack>
<Skeleton mt={50} height={40} radius={"xl"} />
</Stack>
</>
);
}