From f6adaa6777bfc7e1f384bfd90719392e7dba0c49 Mon Sep 17 00:00:00 2001
From: David Abell <79927957+david-abell@users.noreply.github.com>
Date: Mon, 22 Apr 2024 14:58:20 +0100
Subject: [PATCH 1/7] fix: reenable board here and set destination stopmarker
buttons
---
src/components/Map/StopPopup.tsx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/components/Map/StopPopup.tsx b/src/components/Map/StopPopup.tsx
index 71ff278..434b0c0 100644
--- a/src/components/Map/StopPopup.tsx
+++ b/src/components/Map/StopPopup.tsx
@@ -144,19 +144,19 @@ function StopPopup({
)}
- {/*
*/}
+
- {/* {isValidDestination && (
+ {isValidDestination && (
- )} */}
+ )}
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 461145d..990d215 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -278,6 +278,8 @@ export default function Home() {
setDestId(null);
};
+ const showFooter = useMemo(() => !!routeId, [routeId]);
+
return (
@@ -366,6 +368,7 @@ export default function Home() {
selectedDateTime={selectedDateTime}
selectedStopId={stopId}
selectedDestinationStopId={destId}
+ showFooter={showFooter}
stopTimes={stopTimes}
stopTimesByStopId={stopTimesByStopId}
setShowSavedStops={setShowSavedStops}
@@ -431,7 +434,7 @@ export default function Home() {
/>
)}
- {!!routeId && (
+ {!!showFooter && (