Fix notifikasi server action to API
This commit is contained in:
3
src/app_modules/colab/component/index.ts
Normal file
3
src/app_modules/colab/component/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { Collaboration_SkeletonCreate } from "./skeleton_view";
|
||||
|
||||
export { Collaboration_SkeletonCreate };
|
||||
4
src/app_modules/colab/component/lib/api_collaboration.ts
Normal file
4
src/app_modules/colab/component/lib/api_collaboration.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export async function apiGetMasterCollaboration() {
|
||||
const data = await fetch(`/api/collaboration/master`);
|
||||
return await data.json().catch(() => null);
|
||||
}
|
||||
28
src/app_modules/colab/component/skeleton_view.tsx
Normal file
28
src/app_modules/colab/component/skeleton_view.tsx
Normal 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>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user