From 44a578c5f9e823ac88e526399ca79b98fda16956 Mon Sep 17 00:00:00 2001 From: Paul Cretu Date: Thu, 12 Oct 2023 01:51:08 +0000 Subject: [PATCH 1/2] Move feeds to /listen --- ui/src/components/FeedCard.tsx | 2 +- ui/src/pages/dynamic/[feed].tsx | 3 +++ ui/src/pages/index.tsx | 2 +- ui/src/pages/{ => listen}/[feed].tsx | 3 +++ ui/src/pages/{feeds.tsx => listen/index.tsx} | 3 +++ 5 files changed, 11 insertions(+), 2 deletions(-) rename ui/src/pages/{ => listen}/[feed].tsx (96%) rename ui/src/pages/{feeds.tsx => listen/index.tsx} (93%) diff --git a/ui/src/components/FeedCard.tsx b/ui/src/components/FeedCard.tsx index a747499f..d6f585fa 100644 --- a/ui/src/components/FeedCard.tsx +++ b/ui/src/components/FeedCard.tsx @@ -9,7 +9,7 @@ export default function FeedCard({ feed: Pick; }) { return ( - + diff --git a/ui/src/pages/dynamic/[feed].tsx b/ui/src/pages/dynamic/[feed].tsx index 04c6f69f..46c45210 100644 --- a/ui/src/pages/dynamic/[feed].tsx +++ b/ui/src/pages/dynamic/[feed].tsx @@ -28,6 +28,9 @@ const FeedPage: NextPageWithLayout = () => { sx={{ mt: 2 }} > + Home + + All hydrophones dynamic diff --git a/ui/src/pages/index.tsx b/ui/src/pages/index.tsx index 984b9a7a..a57d2a1d 100644 --- a/ui/src/pages/index.tsx +++ b/ui/src/pages/index.tsx @@ -45,7 +45,7 @@ const HomePage: NextPageWithLayout = () => { Learn the sounds */} - + diff --git a/ui/src/pages/[feed].tsx b/ui/src/pages/listen/[feed].tsx similarity index 96% rename from ui/src/pages/[feed].tsx rename to ui/src/pages/listen/[feed].tsx index cef757cf..6c5ef5a3 100644 --- a/ui/src/pages/[feed].tsx +++ b/ui/src/pages/listen/[feed].tsx @@ -32,6 +32,9 @@ const FeedPage: NextPageWithLayout = () => { sx={{ mt: 2 }} > + Home + + All hydrophones {feed.name} diff --git a/ui/src/pages/feeds.tsx b/ui/src/pages/listen/index.tsx similarity index 93% rename from ui/src/pages/feeds.tsx rename to ui/src/pages/listen/index.tsx index d54c8a67..56de399a 100644 --- a/ui/src/pages/feeds.tsx +++ b/ui/src/pages/listen/index.tsx @@ -20,6 +20,9 @@ const FeedsPage: NextPageWithLayout = () => {
+ + Listen live + Select a location to start listening live From a2aed69d4e6571d22da36a12bf526d0d0eccf167 Mon Sep 17 00:00:00 2001 From: Paul Cretu Date: Thu, 12 Oct 2023 02:02:55 +0000 Subject: [PATCH 2/2] Update link for map markers --- ui/src/components/Map.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/Map.tsx b/ui/src/components/Map.tsx index cfd61533..340f0100 100644 --- a/ui/src/components/Map.tsx +++ b/ui/src/components/Map.tsx @@ -60,7 +60,7 @@ export default function Map({ } eventHandlers={{ click: () => { - router.push(`/${feed.slug}`); + router.push(`/listen/${feed.slug}`); }, }} />