Cleanup code
- Remove unused props - Add alt to icon on BoxCTA
This commit is contained in:
@@ -8,8 +8,6 @@
|
||||
import Newsletter from '$components/organisms/Newsletter.svelte'
|
||||
import Heading from '$components/molecules/Heading.svelte'
|
||||
|
||||
export let photos: any
|
||||
|
||||
const { locations }: any = getContext('global')
|
||||
</script>
|
||||
|
||||
@@ -35,30 +33,4 @@
|
||||
<Newsletter />
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
|
||||
<script context="module" lang="ts">
|
||||
import { fetchAPI } from '$utils/api'
|
||||
|
||||
export async function load ({ page, fetch, session, stuff }) {
|
||||
const res = await fetchAPI(`
|
||||
query {
|
||||
photo (limit: 11, sort: ["-date_created"]) {
|
||||
image {
|
||||
id
|
||||
title
|
||||
}
|
||||
}
|
||||
}
|
||||
`)
|
||||
|
||||
const { data } = res
|
||||
|
||||
return {
|
||||
props: {
|
||||
photos: data.photo,
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</main>
|
||||
Reference in New Issue
Block a user