From 378a64f2b028288548e533fc810bbd568b0415ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Mon, 8 Nov 2021 13:00:31 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20product=20to=20cart=20from=20?= =?UTF-8?q?anywhere?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make a global function that adds a product to the current cart --- src/components/layouts/PosterLayout.svelte | 33 ++-------------------- src/components/molecules/Poster.svelte | 5 ++++ src/utils/functions/shop.ts | 9 +++--- 3 files changed, 13 insertions(+), 34 deletions(-) diff --git a/src/components/layouts/PosterLayout.svelte b/src/components/layouts/PosterLayout.svelte index 5a2a944..6108c43 100644 --- a/src/components/layouts/PosterLayout.svelte +++ b/src/components/layouts/PosterLayout.svelte @@ -1,7 +1,7 @@
@@ -98,7 +71,7 @@