From 7e059d8debc92dbfd4d1f23a7441914f439a6db9 Mon Sep 17 00:00:00 2001
From: Anton Tranelis <31516529+antontranelis@users.noreply.github.com>
Date: Tue, 26 Aug 2025 14:56:55 +0200
Subject: [PATCH] feat(app): added external profile url (#328)
* added external profile url
* switch port back to 5174
* fix linting
* chaneged target to _parent
---
app/src/pages/MapContainer.tsx | 4 ++--
.../Map/Subcomponents/ItemPopupComponents/PopupButton.tsx | 4 +++-
lib/src/types/Item.d.ts | 1 +
lib/src/types/ItemType.d.ts | 1 +
4 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/app/src/pages/MapContainer.tsx b/app/src/pages/MapContainer.tsx
index 086f7aa6..7ed063ed 100644
--- a/app/src/pages/MapContainer.tsx
+++ b/app/src/pages/MapContainer.tsx
@@ -116,8 +116,8 @@ function MapContainer({ layers, map }: { layers: LayerProps[]; map: any }) {
{layer.itemType.show_start_end && }
{layer.itemType.show_profile_button && (
)}
diff --git a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.tsx b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.tsx
index 119262b5..918e7bed 100644
--- a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.tsx
+++ b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.tsx
@@ -1,5 +1,6 @@
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
/* eslint-disable @typescript-eslint/restrict-template-expressions */
+import { get } from 'radash'
import { Link } from 'react-router-dom'
import { useGetItemTags } from '#components/Map/hooks/useTags'
@@ -22,9 +23,10 @@ export const PopupButton = ({
}) => {
const params = new URLSearchParams(window.location.search)
const getItemTags = useGetItemTags()
+ const parameter = get(item, parameterField ?? 'id')
return (
-
+