From c9c028118b4adc947dc845b56887692a5546285c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Sun, 14 Nov 2021 19:56:11 +0100 Subject: [PATCH] Cleanup code - Remove unused props - Add alt to icon on BoxCTA --- src/components/atoms/BoxCTA.svelte | 2 +- src/components/molecules/CartItem.svelte | 1 - src/routes/[country]/[location]/index.svelte | 2 -- src/routes/locations.svelte | 30 +------------------- 4 files changed, 2 insertions(+), 33 deletions(-) diff --git a/src/components/atoms/BoxCTA.svelte b/src/components/atoms/BoxCTA.svelte index 930db88..8cd65b1 100644 --- a/src/components/atoms/BoxCTA.svelte +++ b/src/components/atoms/BoxCTA.svelte @@ -9,7 +9,7 @@
- +
{label} diff --git a/src/components/molecules/CartItem.svelte b/src/components/molecules/CartItem.svelte index c67f958..e6111a2 100644 --- a/src/components/molecules/CartItem.svelte +++ b/src/components/molecules/CartItem.svelte @@ -5,7 +5,6 @@ import Select from '$components/molecules/Select.svelte' export let item: any - export let index: number const dispatch = createEventDispatcher() const quantityLimit = 5 diff --git a/src/routes/[country]/[location]/index.svelte b/src/routes/[country]/[location]/index.svelte index 3e11784..5e88617 100644 --- a/src/routes/[country]/[location]/index.svelte +++ b/src/routes/[country]/[location]/index.svelte @@ -14,7 +14,6 @@ export let location: any export let photos: any[] - export let lastUpdated: string export let totalPhotos: number dayjs.extend(advancedFormat) @@ -289,7 +288,6 @@ location: data.location[0], photos: data.photos, totalPhotos: data.photos.length ? data.total_published[0].count.location : 0, - lastUpdated: data.photos.length ? data.photos[0].date_created : undefined, } } } diff --git a/src/routes/locations.svelte b/src/routes/locations.svelte index 4b283c7..a0d76d4 100644 --- a/src/routes/locations.svelte +++ b/src/routes/locations.svelte @@ -8,8 +8,6 @@ import Newsletter from '$components/organisms/Newsletter.svelte' import Heading from '$components/molecules/Heading.svelte' - export let photos: any - const { locations }: any = getContext('global') @@ -35,30 +33,4 @@ - - - - + \ No newline at end of file