From e1c259164fd7a80bc110322b887aec1b7ce13834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Sun, 7 Nov 2021 20:18:19 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Show=20a=20notification=20when=20ad?= =?UTF-8?q?ding=20a=20product=20to=20Cart?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/layouts/PosterLayout.svelte | 23 +++++------ .../molecules/NotificationCart.svelte | 29 +++++++++----- src/routes/shop/__layout.svelte | 9 ++++- src/style/pages/_shop.scss | 8 ++++ src/utils/functions.ts | 1 - src/utils/notifications.ts | 39 +++++++++++++++++++ src/utils/store.ts | 7 +++- 7 files changed, 92 insertions(+), 24 deletions(-) create mode 100644 src/utils/notifications.ts diff --git a/src/components/layouts/PosterLayout.svelte b/src/components/layouts/PosterLayout.svelte index 8bca5b6..6e80744 100644 --- a/src/components/layouts/PosterLayout.svelte +++ b/src/components/layouts/PosterLayout.svelte @@ -1,10 +1,11 @@ diff --git a/src/components/molecules/NotificationCart.svelte b/src/components/molecules/NotificationCart.svelte index b2ff7dc..e595d73 100644 --- a/src/components/molecules/NotificationCart.svelte +++ b/src/components/molecules/NotificationCart.svelte @@ -1,19 +1,28 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/routes/shop/__layout.svelte b/src/routes/shop/__layout.svelte index ccecddb..2b43fbc 100644 --- a/src/routes/shop/__layout.svelte +++ b/src/routes/shop/__layout.svelte @@ -1,5 +1,6 @@