From 7c4667171c2940555cc5632df3eead4ed2288f29 Mon Sep 17 00:00:00 2001 From: Olly Date: Tue, 14 May 2024 22:31:10 +0000 Subject: [PATCH] refactor(#5): reduce code duplication in cookie consent --- src/lib/components/CookieConsent.svelte | 18 ++++-------------- src/routes/+layout.svelte | 2 +- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/src/lib/components/CookieConsent.svelte b/src/lib/components/CookieConsent.svelte index 5e1c64f..e120364 100644 --- a/src/lib/components/CookieConsent.svelte +++ b/src/lib/components/CookieConsent.svelte @@ -1,30 +1,20 @@ -{#if !cookiesAccepted} +{#if showBanner}

We use cookies to ensure you get the best experience on our website. By continuing, you agree diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 0b3f792..88063d5 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -177,7 +177,7 @@ - +