Rename PageTransition prop
This commit is contained in:
@@ -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 }}
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
|
||||
<Switcher isOver={!!$page.params.location && !!$page.params.photo} />
|
||||
|
||||
<PageTransition refresh={$page.path}>
|
||||
<PageTransition path={$page.path}>
|
||||
<slot />
|
||||
</PageTransition>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user