Test foto server

This commit is contained in:
2024-08-20 14:28:29 +08:00
parent 7deb69513a
commit 5fcf46122d
121 changed files with 1924 additions and 462 deletions

View File

@@ -29,6 +29,7 @@ import {
import { useRouter } from "next/navigation";
import { RouterPortofolio } from "@/app/lib/router_hipmi/router_katalog";
import { MainColor } from "@/app_modules/_global/color/color_pallet";
import { ComponentMap_SkeletonDrawerDetailData } from "./skeleton_detail_data";
export function ComponentMap_DetailData({ mapId }: { mapId: any }) {
const router = useRouter();
@@ -43,7 +44,7 @@ export function ComponentMap_DetailData({ mapId }: { mapId: any }) {
setData(res);
}
if (!data) return <CustomLoading />;
if (!data) return <ComponentMap_SkeletonDrawerDetailData />;
return (
<>
@@ -140,20 +141,3 @@ 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>
);
}