Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move feeds to /listen #237

Merged
merged 2 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/src/components/FeedCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function FeedCard({
feed: Pick<Feed, "name" | "slug">;
}) {
return (
<Link href={`/${feed.slug}`} underline="none">
<Link href={`/listen/${feed.slug}`} underline="none">
<Card variant="outlined">
<CardActionArea>
<CardHeader title={feed.name} />
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function Map({
}
eventHandlers={{
click: () => {
router.push(`/${feed.slug}`);
router.push(`/listen/${feed.slug}`);
},
}}
/>
Expand Down
3 changes: 3 additions & 0 deletions ui/src/pages/dynamic/[feed].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ const FeedPage: NextPageWithLayout = () => {
sx={{ mt: 2 }}
>
<Link href={"/"} color="inherit">
Home
</Link>
<Link href={"/listen"} color="inherit">
All hydrophones
</Link>
<Typography color="textPrimary">dynamic</Typography>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const HomePage: NextPageWithLayout = () => {
Learn the sounds
</Button>
</Link> */}
<Link href={"/feeds"} underline="none">
<Link href={"/listen"} underline="none">
<Button variant="contained" color="primary" size="large">
Start listening
</Button>
Expand Down
3 changes: 3 additions & 0 deletions ui/src/pages/[feed].tsx → ui/src/pages/listen/[feed].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ const FeedPage: NextPageWithLayout = () => {
sx={{ mt: 2 }}
>
<Link href={"/"} color="inherit">
Home
</Link>
<Link href={"/listen"} color="inherit">
All hydrophones
</Link>
<Typography color="textPrimary">{feed.name}</Typography>
Expand Down
3 changes: 3 additions & 0 deletions ui/src/pages/feeds.tsx → ui/src/pages/listen/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ const FeedsPage: NextPageWithLayout = () => {

<main>
<Container maxWidth="sm">
<Typography variant="h4" mt={4}>
Listen live
</Typography>
<Typography variant="body1">
Select a location to start listening live
</Typography>
Expand Down
Loading