tanapa env

This commit is contained in:
2024-08-16 11:53:24 +08:00
parent 34031355fe
commit 2960318424
86 changed files with 350 additions and 113 deletions

View File

@@ -5,10 +5,13 @@ import ComponentGlobal_AuthorNameOnHeader from "@/app_modules/_global/author_nam
import {
Box,
Button,
Flex,
Grid,
Group,
Image,
Loader,
SimpleGrid,
Skeleton,
Stack,
Text,
Title,
@@ -40,6 +43,8 @@ export function ComponentMap_DetailData({ mapId }: { mapId: any }) {
setData(res);
}
if (!data) return <CustomLoading />;
return (
<>
<Stack mt={"lg"} spacing={"xl"}>
@@ -135,3 +140,20 @@ export function ComponentMap_DetailData({ mapId }: { mapId: any }) {
</>
);
}
function CustomLoading() {
return (
<Flex>
<Stack w={100}>
<Skeleton h={100} animate />
</Stack>
<Stack style={{ flex: 1 }}>
<Skeleton h={5} animate />
<Skeleton h={5} animate />
<Skeleton h={5} animate />
<Skeleton h={5} animate />
<Skeleton h={5} animate />
</Stack>
</Flex>
);
}

View File

@@ -6,22 +6,21 @@ import {
} from "@/app_modules/_global/color/color_pallet";
import { ComponentGlobal_NotifikasiBerhasil } from "@/app_modules/_global/notif_global/notifikasi_berhasil";
import { ComponentGlobal_NotifikasiGagal } from "@/app_modules/_global/notif_global/notifikasi_gagal";
import { ComponentGlobal_NotifikasiPeringatan } from "@/app_modules/_global/notif_global/notifikasi_peringatan";
import {
ActionIcon,
Affix,
AspectRatio,
Box,
Button,
Center,
FileButton,
Group,
Image,
Paper,
Stack,
Text,
TextInput,
Title,
Title
} from "@mantine/core";
import { IconCamera } from "@tabler/icons-react";
import _ from "lodash";
import { useRouter } from "next/navigation";
import { useState } from "react";
@@ -33,9 +32,6 @@ import Map, {
} from "react-map-gl";
import { map_funCreatePin } from "../fun/create/fun_create_pin";
import { defaultLatLong, defaultMapZoom } from "../lib/default_lat_long";
import ComponentGlobal_BoxInformation from "@/app_modules/_global/component/box_information";
import { ComponentGlobal_NotifikasiPeringatan } from "@/app_modules/_global/notif_global/notifikasi_peringatan";
import { IconCamera, IconX } from "@tabler/icons-react";
export function UiMap_CreatePin({
mapboxToken,