## Deskripsi:
- Perubahan tampilan notifikasi
- Pin map sesuai logo
- Pin map bisa custom
### No Issue
This commit is contained in:
2024-08-23 14:15:11 +08:00
parent cae318c5e3
commit a6bb993b0d
75 changed files with 1602 additions and 646 deletions

View File

@@ -0,0 +1,16 @@
import { map_funGetOneBusinessMapByPortofolioId } from "@/app_modules/map/fun/get/fun_get_one_by_portofolio_id";
import { Map_CustomPin } from "@/app_modules/map/view";
export default async function Page({ params }: { params: { id: string } }) {
const portofolioId = params.id;
const dataMap = await map_funGetOneBusinessMapByPortofolioId({
portofolioId: portofolioId,
});
return (
<>
<Map_CustomPin dataMap={dataMap} />
</>
);
}

View File

@@ -1,9 +1,9 @@
import { map_funGetOneByPortofolioId } from "@/app_modules/map/fun/get/fun_get_one_by_portofolio_id";
import { map_funGetOneBusinessMapByPortofolioId } from "@/app_modules/map/fun/get/fun_get_one_by_portofolio_id";
import { Map_EditPin } from "@/app_modules/map/view";
export default async function Page({ params }: { params: { id: string } }) {
const portofolioId = params.id;
const dataMap = await map_funGetOneByPortofolioId({portofolioId: portofolioId})
const dataMap = await map_funGetOneBusinessMapByPortofolioId({portofolioId: portofolioId})
return (
<>

View File

@@ -1,14 +1,14 @@
import ComponentGlobal_IsEmptyData from "@/app_modules/_global/component/is_empty_data";
import { map_funGetAllMap } from "@/app_modules/map/fun/get/fun_get_all_map";
import { Map_View } from "@/app_modules/map/view";
const mapboxToken = process.env.MAPBOX_TOKEN!;
export default async function Page() {
if (!mapboxToken)
return <ComponentGlobal_IsEmptyData text="Mapbox token not found" />;
const dataMap = await map_funGetAllMap();
return (
<>
<Map_View mapboxToken={mapboxToken} />
<Map_View mapboxToken={mapboxToken} dataMap={dataMap} />
</>
);
}