diff --git a/src/lib/components/atoms/LogoOption.svelte b/src/lib/components/atoms/LogoOption.svelte index ce8f90b..a4a7303 100644 --- a/src/lib/components/atoms/LogoOption.svelte +++ b/src/lib/components/atoms/LogoOption.svelte @@ -7,7 +7,6 @@ import previous from '$lib/assets/icons/previous.svg'; import type { APILogo } from '$lib/types'; - export let name = ''; export let selected: string[]; export let variants: APILogo[]; export let clicked = false; @@ -23,15 +22,6 @@ if (!hasVariants) { return; } - interval = setInterval(() => { - if (i === variants.length - 1) { - i = 0; - } else { - i += 1; - } - }, 2500) as unknown as number; // stfu typescript - - return () => clearInterval(interval); }); function select_logo(id: string) { @@ -62,10 +52,6 @@ i--; } - function stopAutoScroll() { - clearInterval(interval); - } - const handleClick = () => { if (!hasVariants) { select_logo(current.id); @@ -79,7 +65,7 @@ {#if hasVariants} - {name} + Select a variant
{#each variants as variant} @@ -98,7 +84,7 @@
-
+
@@ -108,7 +94,6 @@