Store previous page for photo Viewer close button
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
import { scale } from 'svelte/transition'
|
||||
import { quartOut } from 'svelte/easing'
|
||||
import { getAssetUrlKey } from '$utils/helpers'
|
||||
import { previousPage } from '$utils/stores'
|
||||
import { throttle } from '$utils/functions'
|
||||
import { swipe } from '$utils/interactions/swipe'
|
||||
import dayjs from 'dayjs'
|
||||
@@ -220,7 +221,7 @@
|
||||
|
||||
<ButtonCircle
|
||||
tag="a"
|
||||
url="/{location.country.slug}/{location.slug}"
|
||||
url={$previousPage ? $previousPage : `/${location.country.slug}/${location.slug}`}
|
||||
color="purple"
|
||||
class="viewer-photo__close shadow-box-dark"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user