-
Notifications
You must be signed in to change notification settings - Fork 771
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
59 additions
and
32 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
src/app/(lobby)/@modal/(.)product-preview/[productId]/layout.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { AlertDialog, AlertDialogContent } from "@/components/ui/alert-dialog" | ||
|
||
export default function ProductModalLayout({ | ||
children, | ||
}: React.PropsWithChildren) { | ||
return ( | ||
<AlertDialog defaultOpen> | ||
<AlertDialogContent>{children}</AlertDialogContent> | ||
</AlertDialog> | ||
) | ||
} |
15 changes: 15 additions & 0 deletions
15
src/app/(lobby)/@modal/(.)product-preview/[productId]/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
interface ProductModalPageProps { | ||
params: { | ||
productId: string | ||
} | ||
} | ||
|
||
export default function ProductModalPage({ params }: ProductModalPageProps) { | ||
const productId = Number(params.productId) | ||
|
||
return ( | ||
<div> | ||
<div>Product: {productId}</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function Default() { | ||
return null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60ca66c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
skateshop – ./
skateshop-sadmann7.vercel.app
skateshop.sadmn.com
skateshop-git-main-sadmann7.vercel.app
skateshop13.vercel.app