Skip to content

Commit

Permalink
refactor: remove workshop details modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphico committed Jun 18, 2024
1 parent 5ce8a9f commit 4908da7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 121 deletions.
112 changes: 0 additions & 112 deletions src/app/(app)/@modal/(.)workshop/[workshopId]/page.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions src/app/(app)/@modal/default.tsx

This file was deleted.

8 changes: 2 additions & 6 deletions src/app/(app)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ import { Header } from "./_components/header"

interface AppLayoutProps {
children: React.ReactNode
modal: React.ReactNode
}

export default async function AppLayout({ children, modal }: AppLayoutProps) {
export default async function AppLayout({ children }: AppLayoutProps) {
const { user } = await getUserSession()

if (!user) {
Expand All @@ -20,10 +19,7 @@ export default async function AppLayout({ children, modal }: AppLayoutProps) {
return (
<div className="relative flex min-h-screen flex-col">
<Header user={user} />
<main className="flex-1">
{children}
{modal}
</main>
<main className="flex-1">{children}</main>
</div>
)
}

0 comments on commit 4908da7

Please sign in to comment.