From 94ec2e55764fa314cdc0fa9672fccf3e67135c91 Mon Sep 17 00:00:00 2001
From: Anton Tranelis <31516529+antontranelis@users.noreply.github.com>
Date: Wed, 27 Aug 2025 13:17:20 +0200
Subject: [PATCH] fix popup button (#339)
---
app/src/pages/MapContainer.tsx | 5 ++++-
.../Map/Subcomponents/ItemPopupComponents/PopupButton.tsx | 4 +++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/app/src/pages/MapContainer.tsx b/app/src/pages/MapContainer.tsx
index 7ed063ed..bb722d8d 100644
--- a/app/src/pages/MapContainer.tsx
+++ b/app/src/pages/MapContainer.tsx
@@ -117,8 +117,11 @@ function MapContainer({ layers, map }: { layers: LayerProps[]; map: any }) {
{layer.itemType.show_profile_button && (
)}
{layer.itemType.show_text && }
diff --git a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.tsx b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.tsx
index 918e7bed..326a69e8 100644
--- a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.tsx
+++ b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.tsx
@@ -15,18 +15,20 @@ export const PopupButton = ({
parameterField,
text,
item,
+ target,
}: {
url: string
parameterField?: string
text: string
item?: Item
+ target?: string
}) => {
const params = new URLSearchParams(window.location.search)
const getItemTags = useGetItemTags()
const parameter = get(item, parameterField ?? 'id')
return (
-
+