Skip to content

Commit

Permalink
refactor: app folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphico committed Jul 6, 2024
1 parent bfd262e commit a233ffc
Show file tree
Hide file tree
Showing 22 changed files with 13 additions and 31 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 1 addition & 23 deletions src/app/(app)/session/[workshopId]/_components/session-call.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,29 +92,7 @@ export function SessionCall({
router.push("/dashboard")
}}
/>
{/* <div className="grid w-full space-x-10 lg:grid-cols-[1fr_20rem]">
<div className="flex flex-col items-center justify-center space-y-4">
<SpeakerLayout />
<CallControls
onLeave={async () => {
if (isOrganizer) {
await MarkWorkshopHasCompleted(workshopId).then(() =>
call.endCall()
)
}
router.push("/dashboard")
}}
/>
</div>
<div className="max-lg:hidden">
<CallParticipantsList onClose={() => undefined} />
</div>
</div>
<div className="lg:hidden">
<CallParticipantsList onClose={() => undefined} />
</div> */}
<CallParticipantsList onClose={() => undefined} />
</StreamCall>
</StreamTheme>
</StreamVideo>
Expand Down
7 changes: 7 additions & 0 deletions src/app/(app)/session/[workshopId]/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function SessionLayout({ children }: React.PropsWithChildren) {
return (
<div className="relative flex min-h-screen flex-col">
<main className="flex-1">{children}</main>
</div>
)
}
13 changes: 5 additions & 8 deletions src/app/(app)/session/[workshopId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { redirects } from "@/config/constants"
import { getWorkshopRegistrants } from "@/server/data/registration"
import { getUserSession } from "@/server/data/user"
import { getWorkshopSession } from "@/server/data/workshop"
import { Shell } from "@/components/shell"

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

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

return (
<Shell className="max-w-6xl" variant="centered">
<SessionCall
workshopId={workshopId}
isOrganizer={isOrganizer}
user={user}
/>
</Shell>
<SessionCall
workshopId={workshopId}
isOrganizer={isOrganizer}
user={user}
/>
)
}

0 comments on commit a233ffc

Please sign in to comment.