Add stall view and product detail dialog in market module

- Introduced a new route for viewing individual stalls, allowing users to navigate to a specific stall's page.
- Created a ProductDetailDialog component to display detailed information about products, including images, descriptions, and stock status.
- Updated MarketPage to handle stall navigation and integrate the new dialog for product details.

These enhancements improve the user experience by providing more detailed product information and easier navigation within the market module.
This commit is contained in:
padreug 2025-09-25 22:53:12 +02:00
parent f2080abce5
commit 86d3133978
4 changed files with 601 additions and 0 deletions

View file

@ -81,6 +81,7 @@
:product="product"
@add-to-cart="addToCart"
@view-details="viewProduct"
@view-stall="viewStall"
/>
</div>
@ -164,6 +165,11 @@ const viewProduct = (_product: any) => {
// TODO: Navigate to product detail page
}
const viewStall = (stallId: string) => {
// Navigate to the stall view page
router.push(`/market/stall/${stallId}`)
}
const viewCart = () => {
router.push('/cart')
}