Skip to content

Commit 4908da7

Browse files
committed
refactor: remove workshop details modal
1 parent 5ce8a9f commit 4908da7

File tree

3 files changed

+2
-121
lines changed

3 files changed

+2
-121
lines changed

src/app/(app)/@modal/(.)workshop/[workshopId]/page.tsx

-112
This file was deleted.

src/app/(app)/@modal/default.tsx

-3
This file was deleted.

src/app/(app)/layout.tsx

+2-6
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ import { Header } from "./_components/header"
77

88
interface AppLayoutProps {
99
children: React.ReactNode
10-
modal: React.ReactNode
1110
}
1211

13-
export default async function AppLayout({ children, modal }: AppLayoutProps) {
12+
export default async function AppLayout({ children }: AppLayoutProps) {
1413
const { user } = await getUserSession()
1514

1615
if (!user) {
@@ -20,10 +19,7 @@ export default async function AppLayout({ children, modal }: AppLayoutProps) {
2019
return (
2120
<div className="relative flex min-h-screen flex-col">
2221
<Header user={user} />
23-
<main className="flex-1">
24-
{children}
25-
{modal}
26-
</main>
22+
<main className="flex-1">{children}</main>
2723
</div>
2824
)
2925
}

0 commit comments

Comments
 (0)