Rename PageTransition prop
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { fade } from 'svelte/transition'
|
import { fade } from 'svelte/transition'
|
||||||
|
|
||||||
export let refresh = ''
|
export let path = ''
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#key refresh}
|
{#key path}
|
||||||
<div
|
<div
|
||||||
in:fade={{ duration: 400, delay: 500 }}
|
in:fade={{ duration: 400, delay: 500 }}
|
||||||
out:fade={{ duration: 400 }}
|
out:fade={{ duration: 400 }}
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
|
|
||||||
<Switcher isOver={!!$page.params.location && !!$page.params.photo} />
|
<Switcher isOver={!!$page.params.location && !!$page.params.photo} />
|
||||||
|
|
||||||
<PageTransition refresh={$page.path}>
|
<PageTransition path={$page.path}>
|
||||||
<slot />
|
<slot />
|
||||||
</PageTransition>
|
</PageTransition>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user