Skip to content

Commit a233ffc

Browse files
committed
refactor: app folder structure
1 parent bfd262e commit a233ffc

22 files changed

+13
-31
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

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

+1-23
Original file line numberDiff line numberDiff line change
@@ -92,29 +92,7 @@ export function SessionCall({
9292
router.push("/dashboard")
9393
}}
9494
/>
95-
{/* <div className="grid w-full space-x-10 lg:grid-cols-[1fr_20rem]">
96-
<div className="flex flex-col items-center justify-center space-y-4">
97-
<SpeakerLayout />
98-
<CallControls
99-
onLeave={async () => {
100-
if (isOrganizer) {
101-
await MarkWorkshopHasCompleted(workshopId).then(() =>
102-
call.endCall()
103-
)
104-
}
105-
106-
router.push("/dashboard")
107-
}}
108-
/>
109-
</div>
110-
111-
<div className="max-lg:hidden">
112-
<CallParticipantsList onClose={() => undefined} />
113-
</div>
114-
</div>
115-
<div className="lg:hidden">
116-
<CallParticipantsList onClose={() => undefined} />
117-
</div> */}
95+
<CallParticipantsList onClose={() => undefined} />
11896
</StreamCall>
11997
</StreamTheme>
12098
</StreamVideo>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default function SessionLayout({ children }: React.PropsWithChildren) {
2+
return (
3+
<div className="relative flex min-h-screen flex-col">
4+
<main className="flex-1">{children}</main>
5+
</div>
6+
)
7+
}

src/app/(app)/session/[workshopId]/page.tsx

+5-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { redirects } from "@/config/constants"
44
import { getWorkshopRegistrants } from "@/server/data/registration"
55
import { getUserSession } from "@/server/data/user"
66
import { getWorkshopSession } from "@/server/data/workshop"
7-
import { Shell } from "@/components/shell"
87

98
import { SessionCall } from "./_components/session-call"
109

@@ -48,12 +47,10 @@ export default async function SessionPage({ params }: SessionPageProps) {
4847
}
4948

5049
return (
51-
<Shell className="max-w-6xl" variant="centered">
52-
<SessionCall
53-
workshopId={workshopId}
54-
isOrganizer={isOrganizer}
55-
user={user}
56-
/>
57-
</Shell>
50+
<SessionCall
51+
workshopId={workshopId}
52+
isOrganizer={isOrganizer}
53+
user={user}
54+
/>
5855
)
5956
}

0 commit comments

Comments
 (0)