feat : api

Deskripsi:
- add group
- add position

No issue
This commit is contained in:
lukman
2024-07-30 17:45:02 +08:00
parent 2e8d2b3c1f
commit 01016bede9
12 changed files with 214 additions and 224 deletions

View File

@@ -1,4 +1,4 @@
import { API_ADDRESS, LayoutDrawer, WARNA } from "@/module/_global";
import { API_ADDRESS, LayoutDrawer, SkeletonSingle, WARNA } from "@/module/_global";
import {
ActionIcon,
Box,
@@ -74,32 +74,9 @@ export default function ListGroupActive({ status }: { status: boolean }) {
? Array(6)
.fill(null)
.map((_, i) => (
<Box pt={20} key={i}>
<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>
<Box key={i}>
<SkeletonSingle />
</Box>
))
: isData.map((v, i) => {
return (

View File

@@ -41,11 +41,11 @@ export default function EditDrawerGroup({
},
body: JSON.stringify({
id: id,
name : name
name: name
}),
});
setOpenDrawerGroup(false);
onUpdated(true);
onUpdated(true);
} catch (error) {
console.error(error);
}