Skip to content

Commit 13a8f0c

Browse files
committed
feat: complete session page
1 parent a233ffc commit 13a8f0c

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ The architecture of this project revolves around a streamlined development and d
3636
- [x] Participant registration
3737
- [x] Join workshops with workshop code
3838
- [x] Complete workshop & dashboard page
39+
- [x] Interactive workshop session
3940
- [ ] Improve workshop notification with cron jobs
40-
- [ ] Interactive workshop session
4141

4242
## Running locally
4343

src/app/(app)/session/[workshopId]/_components/session-call.tsx

+16-12
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,23 @@ export function SessionCall({
8080
<StreamVideo client={videoClient}>
8181
<StreamTheme>
8282
<StreamCall call={call}>
83-
<SpeakerLayout />
84-
<CallControls
85-
onLeave={() => {
86-
if (isOrganizer) {
87-
void MarkWorkshopHasCompleted(workshopId).then(() =>
88-
call.endCall()
89-
)
90-
}
83+
<section className="container mt-8 overflow-hidden">
84+
<SpeakerLayout />
85+
<CallControls
86+
onLeave={() => {
87+
if (isOrganizer) {
88+
void MarkWorkshopHasCompleted(workshopId).then(() =>
89+
call.endCall()
90+
)
91+
}
9192

92-
router.push("/dashboard")
93-
}}
94-
/>
95-
<CallParticipantsList onClose={() => undefined} />
93+
router.push("/dashboard")
94+
}}
95+
/>
96+
<div className="mx-auto max-w-3xl">
97+
<CallParticipantsList onClose={() => undefined} />
98+
</div>
99+
</section>
96100
</StreamCall>
97101
</StreamTheme>
98102
</StreamVideo>

0 commit comments

Comments
 (0)