Skip to content

Commit 838d0c2

Browse files
added basic navigation to the participants page
1 parent 89cedc7 commit 838d0c2

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

client/src/pages/events/[id].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function EventDetailsPage() {
3434
</Button>
3535
}
3636
primaryAction={
37-
<Link href={"/home"} className="flex-1">
37+
<Link href={"/events/" + id + "/participants"} className="flex-1">
3838
<Button className="w-full rounded-full">Join Event</Button>
3939
</Link>
4040
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { useRouter } from "next/router";
2+
3+
export default function ParticipantsPage() {
4+
const router = useRouter();
5+
const { id } = router.query;
6+
7+
return <div>Participants for event {id}</div>;
8+
}

client/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
},
1818
"target": "ES2017"
1919
},
20-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
20+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "src/pages/events/[id]/.tsx/participants.tsx"],
2121
"exclude": ["node_modules"]
2222
}

0 commit comments

Comments
 (0)