Skip to content

Commit a664270

Browse files
committed
Updated club page
1 parent 3829751 commit a664270

13 files changed

Lines changed: 420 additions & 202 deletions

File tree

package-lock.json

Lines changed: 145 additions & 91 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"next": "^15.3.3",
1717
"next-pwa": "^5.6.0",
1818
"react": "^19.1.0",
19-
"react-dom": "^19.1.0"
19+
"react-dom": "^19.1.0",
20+
"react-router-dom": "^7.6.2"
2021
},
2122
"devDependencies": {
2223
"@fortawesome/fontawesome-svg-core": "^6.7.2",

public/club_image/ieee.jpg

30 KB
Loading

public/club_image/mulearn.png

5.18 KB
Loading

public/wave-line.svg

Lines changed: 1 addition & 0 deletions
Loading

src/app/club/[slug]/page.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { notFound } from 'next/navigation';
2+
import clubData from '@/components/club/ClubData';
3+
4+
5+
export default async function ClubDetailPage({ params }: { params: { slug: string } }) {
6+
const { slug } = await Promise.resolve(params); // simulate async destructuring
7+
8+
const club = clubData.find((c) => c.slug === slug);
9+
if (!club) notFound();
10+
return <h1>Club Details</h1>;
11+
}

src/app/club/page.tsx

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
1-
//replace with club buttons and stuff accroding to design
2-
import { BusButtons } from "@/components/Bus/busButton";
3-
4-
const busData = [
5-
{ slug: 'bus-1', name: 'Bus 1' },
6-
{ slug: 'bus-2', name: 'Bus 2' },
7-
{ slug: 'bus-3', name: 'Bus 3' },
8-
{ slug: 'bus-4', name: 'Bus 4' },
9-
{ slug: 'bus-5', name: 'Bus 5' },
10-
{ slug: 'bus-6', name: 'Bus 6' },
11-
];
12-
13-
export default function BusPage() {
14-
return (
15-
<div>
16-
<BusButtons buses={busData} />
17-
</div>
18-
);
19-
}
1+
'use client';
2+
import ClubList from "@/components/club/ClubList";
3+
export default function ClubPage() {
4+
return <ClubList/>;
5+
}

0 commit comments

Comments
 (0)