Create Location and Locations sections
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user