Temp fix for carousels types
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { onMount } from 'svelte'
|
import { onMount } from 'svelte'
|
||||||
import { writable } from 'svelte/store'
|
import { writable } from 'svelte/store'
|
||||||
import EmblaCarousel, { EmblaCarouselType } from 'embla-carousel'
|
import EmblaCarousel from 'embla-carousel'
|
||||||
// Components
|
// Components
|
||||||
import Image from '$components/atoms/Image.svelte'
|
import Image from '$components/atoms/Image.svelte'
|
||||||
|
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
let arrowEl: HTMLElement
|
let arrowEl: HTMLElement
|
||||||
let carouselEl: HTMLElement
|
let carouselEl: HTMLElement
|
||||||
let carousel: EmblaCarouselType
|
let carousel: any // EmblaCarouselType
|
||||||
let currentSlide = 0
|
let currentSlide = 0
|
||||||
let arrowDirection: string = null
|
let arrowDirection: string = null
|
||||||
$: isFirstSlide = currentSlide === 0
|
$: isFirstSlide = currentSlide === 0
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { getContext, onMount } from 'svelte'
|
import { getContext, onMount } from 'svelte'
|
||||||
import EmblaCarousel, { EmblaCarouselType } from 'embla-carousel'
|
import EmblaCarousel from 'embla-carousel'
|
||||||
// Components
|
// Components
|
||||||
import Poster from '$components/molecules/Poster.svelte'
|
import Poster from '$components/molecules/Poster.svelte'
|
||||||
import EmailForm from '$components/molecules/EmailForm.svelte'
|
import EmailForm from '$components/molecules/EmailForm.svelte'
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
let innerWidth: number
|
let innerWidth: number
|
||||||
let carouselEl: HTMLElement
|
let carouselEl: HTMLElement
|
||||||
let carousel: EmblaCarouselType
|
let carousel: any // EmblaCarouselType
|
||||||
let currentSlide = 0
|
let currentSlide = 0
|
||||||
let carouselDots = []
|
let carouselDots = []
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user