Skip to content

Commit f95d5d3

Browse files
committed
fix(bus&club) missed the code in club slug
1 parent 6a6f037 commit f95d5d3

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

src/app/club/slug/page.tsx

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,18 @@
11
// app/bus/[busNumber]/page.tsx
22

33

4-
export async function generateStaticParams() {
5-
return [
6-
{ slug: '1' },
7-
{ slug: '2' },
8-
{ slug: '3' },
9-
// Add more known slugs/bus numbers
10-
];
11-
}
12-
13-
export default function BusPage({ params }: { params: { slug: string } }) {
4+
export default function Home() {
145
return (
156
<div>
16-
<h1>Bus Number: {params.slug}</h1>
177
<p>
18-
In this dynamic page, the UI/UX remains consistent across all buses, but
19-
the content updates based on the bus number.
8+
In this dynamic page, when you click any bus button, the UI/UX for all bus locations remains the same.
9+
We use a dynamic page system so that clicking on, for example, the "Bus 1" button redirects here,
10+
but the displayed content updates to show the respective bus's location.
2011
</p>
2112
</div>
2213
);
2314
}
2415

25-
2616
// import { notFound } from 'next/navigation';
2717

2818
// // Mock data for clubs (replace with actual data fetching logic)

0 commit comments

Comments
 (0)