feat : api
Deskripsi: - add group - add position No issue
This commit is contained in:
@@ -26,4 +26,14 @@ export const API_ADDRESS = {
|
||||
"apiCreateVillage": "/api/village/post?path=create-village",
|
||||
"apiUpdateVillage": "/api/village/post?path=update-village",
|
||||
"apiDeleteVillage": "/api/village/post?path=delete-village",
|
||||
|
||||
// Position
|
||||
"apiGetAllPosition": "/api/position/get?path=get-all-position",
|
||||
"apiGetOnePosition": "/api/position/get?path=get-one-position",
|
||||
"apiCreatePosition": "/api/position/post?path=create-position",
|
||||
"apiUpdatePosition": "/api/position/post?path=update-position",
|
||||
"apiDeletePosition": "/api/position/post?path=delete-position",
|
||||
|
||||
|
||||
|
||||
}
|
||||
33
src/module/_global/components/skeleton_single.tsx
Normal file
33
src/module/_global/components/skeleton_single.tsx
Normal file
@@ -0,0 +1,33 @@
|
||||
import { ActionIcon, Box, Group, Skeleton } from '@mantine/core';
|
||||
import React from 'react';
|
||||
|
||||
export default function SkeletonSingle() {
|
||||
return (
|
||||
<Box pt={20}>
|
||||
<Group
|
||||
align="center"
|
||||
style={{
|
||||
border: `1px solid ${"#DCEED8"}`,
|
||||
padding: 10,
|
||||
borderRadius: 10,
|
||||
cursor: "pointer",
|
||||
}}
|
||||
>
|
||||
<Box>
|
||||
<ActionIcon
|
||||
variant="light"
|
||||
bg={"#DCEED8"}
|
||||
size={50}
|
||||
radius={100}
|
||||
aria-label="icon"
|
||||
>
|
||||
<Skeleton height={25} width={25} />
|
||||
</ActionIcon>
|
||||
</Box>
|
||||
<Box>
|
||||
<Skeleton height={20} width={100} />
|
||||
</Box>
|
||||
</Group>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
import { API_ADDRESS } from "./bin/api_address";
|
||||
import prisma from "./bin/prisma";
|
||||
import { pwd_key_config } from "./bin/val_global";
|
||||
import SkeletonSingle from "./components/skeleton_single";
|
||||
import { WARNA } from "./fun/WARNA";
|
||||
import LayoutDrawer from "./layout/layout_drawer";
|
||||
import LayoutIconBack from "./layout/layout_icon_back";
|
||||
@@ -20,4 +21,5 @@ export { LayoutNavbarNew };
|
||||
export { ViewFilter };
|
||||
export { prisma };
|
||||
export { pwd_key_config };
|
||||
export { API_ADDRESS };
|
||||
export { API_ADDRESS };
|
||||
export {SkeletonSingle}
|
||||
Reference in New Issue
Block a user