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>
);
}