From f38a8fcdc71399a5820ce64a4f3aad5ad6714c06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Wed, 14 Sep 2022 11:32:58 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Store=20location=20last=20seen=20da?= =?UTF-8?q?te=20to=20check=20for=20New=20label?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stores the last location's page seeing date in localStorage to hide the Location's new label in list, on top of the date limit --- src/components/molecules/Location.svelte | 16 +++++++++------ src/routes/[country]/[location]/+page.svelte | 9 +++++++++ src/utils/stores/index.ts | 21 +++++++++++++++++++- src/utils/stores/shop.ts | 7 ++++--- 4 files changed, 43 insertions(+), 10 deletions(-) diff --git a/src/components/molecules/Location.svelte b/src/components/molecules/Location.svelte index d4da2f6..4efd16f 100644 --- a/src/components/molecules/Location.svelte +++ b/src/components/molecules/Location.svelte @@ -5,9 +5,10 @@