Fix eslint error and update svelte related stuff

This commit is contained in:
2023-01-22 21:39:10 +01:00
parent 1143651549
commit b76f70a05f
32 changed files with 80 additions and 70 deletions

View File

@@ -10,7 +10,7 @@
import IconArrow from '$components/atoms/IconArrow.svelte'
import ButtonCircle from '$components/atoms/ButtonCircle.svelte'
export let past: boolean = false
export let past = false
let inputInFocus = false
let formStatus: FormStatus = null

View File

@@ -3,7 +3,7 @@
</style>
<script lang="ts">
export let ended: boolean = false
export let ended = false
export let current: number
export let total: number
</script>

View File

@@ -12,8 +12,8 @@
export let title: string = undefined
export let location: any = undefined
export let city: string = undefined
export let hovered: boolean = false
export let lazy: boolean = true
export let hovered = false
export let lazy = true
const dispatch = createEventDispatcher()
const sizes = {

View File

@@ -8,7 +8,7 @@
import { shopCurrentProductSlug } from '$utils/stores/shop'
import { smoothScroll } from '$utils/stores'
export let isOver: boolean = false
export let isOver = false
const { shopLocations }: any = getContext('shop')
@@ -22,7 +22,7 @@
// Quick location change
const quickLocationChange = async ({ target: { value }}: any) => {
const pathTo = `/shop/poster-${value}`
goto(pathTo, { replaceState: true, noscroll: true, keepfocus: true })
goto(pathTo, { replaceState: true, noScroll: true, keepFocus: true })
// Scroll to anchor
await tick()