Rename PageTransition prop

This commit is contained in:
2021-11-30 19:49:55 +01:00
parent 450daccd87
commit f95d793d58
2 changed files with 3 additions and 3 deletions

View File

@@ -1,10 +1,10 @@
<script lang="ts">
import { fade } from 'svelte/transition'
export let refresh = ''
export let path = ''
</script>
{#key refresh}
{#key path}
<div
in:fade={{ duration: 400, delay: 500 }}
out:fade={{ duration: 400 }}

View File

@@ -60,7 +60,7 @@
<Switcher isOver={!!$page.params.location && !!$page.params.photo} />
<PageTransition refresh={$page.path}>
<PageTransition path={$page.path}>
<slot />
</PageTransition>