Create Location and Locations sections

This commit is contained in:
2021-09-27 23:55:16 +02:00
parent bd89e28e15
commit 1883d5781f
6 changed files with 58 additions and 4 deletions

View File

@@ -8,7 +8,7 @@
export let photos: any
const globalData: any = getContext('global')
const { location, count }: any = getContext('global')
</script>
<Metas
@@ -34,8 +34,9 @@
</div>
</section>
<p>Discover {count.photos} homes from {count.locations} cities of {count.countries} countries</p>
<Locations
locations={globalData.location}
locations={location}
/>
</main>