diff --git a/src/components/molecules/Location.svelte b/src/components/molecules/Location.svelte index a6b05b3..6e9c387 100644 --- a/src/components/molecules/Location.svelte +++ b/src/components/molecules/Location.svelte @@ -86,6 +86,7 @@ {/if} + {#if location.photos.length}
{#each location.photos as { image }, index} diff --git a/src/components/organisms/Cart.svelte b/src/components/organisms/Cart.svelte index c4d9a87..38143e5 100644 --- a/src/components/organisms/Cart.svelte +++ b/src/components/organisms/Cart.svelte @@ -139,7 +139,7 @@
{#if $cartAmount > 0} - {#each $cartData.items as item, index} + {#each $cartData.items as item} 1440 && window.devicePixelRatio > 1 ? '4k' : '2k' const { continents, locations } = getContext('global') - const randomContinent = getRandomItem(continents.filter((cont: any) => cont.countries)) + const randomContinent: any = getRandomItem(continents.filter((cont: any) => cont.countries)) const markers = locations.map(({ name, slug, country, globe_close: isClose, coordinates: { coordinates }}: any) => ({ name, slug, @@ -91,11 +91,10 @@ entries.forEach(({ isIntersecting }: IntersectionObserverEntry) => { if (isIntersecting) { globe.enable() - console.log('IO enable globe') + console.log('globe: IO enable') } else { globe.disable() - console.log('IO disable globe') - + console.log('globe: IO disable') } }) }, { @@ -103,12 +102,6 @@ rootMargin: '0px 0px 0px' }) observer.observe(globeEl) - - // const globeScroll = ScrollOut({ - // targets: scope, - // onShown: () => globe.enable(), - // onHidden: () => globe.disable() - // }) }) diff --git a/src/routes/[country]/[location]/index.svelte b/src/routes/[country]/[location]/index.svelte index 9215c3a..6cbd61c 100644 --- a/src/routes/[country]/[location]/index.svelte +++ b/src/routes/[country]/[location]/index.svelte @@ -113,7 +113,7 @@ }) // Photos MutationObserver - mutationPhotos = new MutationObserver((mutationsList, observer) => { + mutationPhotos = new MutationObserver((mutationsList) => { // When adding new childs for (const mutation of mutationsList) { if (mutation.type === 'childList') { diff --git a/src/routes/shop/__layout.svelte b/src/routes/shop/__layout.svelte index 516f824..227757a 100644 --- a/src/routes/shop/__layout.svelte +++ b/src/routes/shop/__layout.svelte @@ -27,6 +27,7 @@ +
{#each $cartNotifications as { id, title, name, image } (id)}