From 91991ad11b1136a9a5c41647da275a2b32a04a0e Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Mon, 29 Sep 2025 13:38:40 +0000 Subject: [PATCH] Refactor Park Address Display --- src/pages/ParkDetail.tsx | 58 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 53 insertions(+), 5 deletions(-) diff --git a/src/pages/ParkDetail.tsx b/src/pages/ParkDetail.tsx index 4fced114..6768ea53 100644 --- a/src/pages/ParkDetail.tsx +++ b/src/pages/ParkDetail.tsx @@ -337,11 +337,59 @@ export default function ParkDetail() {
Location
- {park.location &&
- {park.location.city &&
{park.location.city}
} - {park.location.state_province &&
{park.location.state_province}
} -
{park.location.country}
-
} + {park.location && ( +
+ {/* Full Address Display */} +
+
Address:
+
+ {park.location.name &&
{park.location.name}
} + {park.location.city &&
{park.location.city}
} + {park.location.state_province &&
{park.location.state_province}
} + {park.location.postal_code &&
{park.location.postal_code}
} +
{park.location.country}
+
+
+ + {/* Map Links */} + {park.location?.latitude && park.location?.longitude && ( +
+ + +
+ )} +
+ )} {park.location?.latitude && park.location?.longitude && (