Destructurate page data

This commit is contained in:
2022-08-18 23:23:57 +02:00
parent 2539834ce1
commit d7cab1f013
3 changed files with 11 additions and 8 deletions

View File

@@ -29,6 +29,7 @@
export let data: PageData
const { photos } = data
const { settings, locations }: any = getContext('global')
let scrollY: number, innerHeight: number
@@ -110,7 +111,7 @@
</section>
<section class="homepage__photos">
<Collage photos={data.photos} />
<Collage {photos} />
</section>
<div class="homepage__ctas">