fix: Map
Deskripsi: - Tampilan map - Tampilan portofolio - Kirim file ke wibu storage ## No Image
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
import { RouterMap } from "@/app/lib/router_hipmi/router_map";
|
||||
import { APIs } from "@/app/lib";
|
||||
import { MODEL_MAP } from "@/app_modules/map/lib/interface";
|
||||
import {
|
||||
Stack,
|
||||
AspectRatio,
|
||||
Box,
|
||||
Grid,
|
||||
Image,
|
||||
Text,
|
||||
Button,
|
||||
Center,
|
||||
Grid,
|
||||
Image,
|
||||
Stack,
|
||||
Text,
|
||||
} from "@mantine/core";
|
||||
import { useShallowEffect } from "@mantine/hooks";
|
||||
import {
|
||||
IconBuildingSkyscraper,
|
||||
IconListDetails,
|
||||
IconPhoneCall,
|
||||
IconMapPin,
|
||||
IconPhoneCall,
|
||||
IconPinned,
|
||||
} from "@tabler/icons-react";
|
||||
import { useState } from "react";
|
||||
@@ -48,8 +48,8 @@ export function ComponentAdminMap_DetailDataDrawer({
|
||||
<Image
|
||||
radius={"md"}
|
||||
width={300}
|
||||
alt="Foto"
|
||||
src={RouterMap.api_foto + data?.imageMapId}
|
||||
alt="Photo"
|
||||
src={APIs.GET + data?.imageId}
|
||||
/>
|
||||
</AspectRatio>
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@ export async function adminMap_funGetAllMaps() {
|
||||
isActive: true,
|
||||
},
|
||||
include: {
|
||||
ImagePin: true,
|
||||
Portofolio: true,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -8,8 +8,6 @@ export async function adminMap_funGetOneById({ mapId }: { mapId: string }) {
|
||||
id: mapId,
|
||||
},
|
||||
include: {
|
||||
ImageMap: true,
|
||||
ImagePin: true,
|
||||
Author: true,
|
||||
Portofolio: {
|
||||
include: {
|
||||
|
||||
@@ -19,6 +19,7 @@ import { ComponentAdminMap_Drawer } from "../component";
|
||||
import { AccentColor } from "@/app_modules/_global/color/color_pallet";
|
||||
import { RouterPortofolio } from "@/app/lib/router_hipmi/router_katalog";
|
||||
import { RouterMap } from "@/app/lib/router_hipmi/router_map";
|
||||
import { APIs } from "@/app/lib";
|
||||
|
||||
export function UiAdminMap_MapBoxView({
|
||||
mapboxToken,
|
||||
@@ -88,9 +89,9 @@ export function UiAdminMap_MapBoxView({
|
||||
backgroundColor: "white",
|
||||
}}
|
||||
src={
|
||||
e.imagePinId === null
|
||||
? RouterPortofolio.api_logo_porto + e.Portofolio.logoId
|
||||
: RouterMap.api_custom_pin + e.imagePinId
|
||||
e.pinId === null
|
||||
? APIs.GET + e.Portofolio.logoId
|
||||
: APIs.GET + e.pinId
|
||||
}
|
||||
/>
|
||||
</Stack>
|
||||
|
||||
Reference in New Issue
Block a user