Skip to content

Commit

Permalink
feat: complete session page
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphico committed Jul 7, 2024
1 parent a233ffc commit 13a8f0c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ The architecture of this project revolves around a streamlined development and d
- [x] Participant registration
- [x] Join workshops with workshop code
- [x] Complete workshop & dashboard page
- [x] Interactive workshop session
- [ ] Improve workshop notification with cron jobs
- [ ] Interactive workshop session

## Running locally

Expand Down
28 changes: 16 additions & 12 deletions src/app/(app)/session/[workshopId]/_components/session-call.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,23 @@ export function SessionCall({
<StreamVideo client={videoClient}>
<StreamTheme>
<StreamCall call={call}>
<SpeakerLayout />
<CallControls
onLeave={() => {
if (isOrganizer) {
void MarkWorkshopHasCompleted(workshopId).then(() =>
call.endCall()
)
}
<section className="container mt-8 overflow-hidden">
<SpeakerLayout />
<CallControls
onLeave={() => {
if (isOrganizer) {
void MarkWorkshopHasCompleted(workshopId).then(() =>
call.endCall()
)
}

router.push("/dashboard")
}}
/>
<CallParticipantsList onClose={() => undefined} />
router.push("/dashboard")
}}
/>
<div className="mx-auto max-w-3xl">
<CallParticipantsList onClose={() => undefined} />
</div>
</section>
</StreamCall>
</StreamTheme>
</StreamVideo>
Expand Down

0 comments on commit 13a8f0c

Please sign in to comment.