From 75f3e5f1d179584856b64bfcfbb986f1b6e7db73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Mon, 8 Nov 2021 13:24:33 +0100 Subject: [PATCH] Get a category of products from Swell --- src/components/layouts/PosterLayout.svelte | 4 +- src/routes/api/swell.ts | 11 ++++-- src/routes/shop/__layout.svelte | 45 ++++++++++++++-------- src/utils/functions/swell.ts | 19 +++++++++ 4 files changed, 59 insertions(+), 20 deletions(-) diff --git a/src/components/layouts/PosterLayout.svelte b/src/components/layouts/PosterLayout.svelte index 6108c43..c48519a 100644 --- a/src/components/layouts/PosterLayout.svelte +++ b/src/components/layouts/PosterLayout.svelte @@ -8,7 +8,7 @@ import Carousel from '$components/organisms/Carousel.svelte' export let product: any - export let productShop: any + export let shopProduct: any /** @@ -66,7 +66,7 @@
{capitalizeFirstLetter(product.type)}
-
{productShop.name} – {productShop.price}€
+
{shopProduct.name} – {shopProduct.price}€