Fix Cart issue by using PosterLayout on each shop page and not layout

This commit is contained in:
2021-11-09 22:41:36 +01:00
parent f68ffb2402
commit f1be0b719e
3 changed files with 52 additions and 9 deletions

View File

@@ -0,0 +1,23 @@
<script lang="ts">
import PosterLayout from '$components/layouts/PosterLayout.svelte'
export let product: any
export let shopProduct: any
</script>
<PosterLayout
product={product}
shopProduct={shopProduct}
/>
<script context="module" lang="ts">
export async function load ({ page, fetch, session, stuff }) {
// Get content from stuff
return {
props: {
product: stuff.product,
shopProduct: stuff.shopProduct,
}
}
}
</script>