The defaultPageProps object had a typo in the name
This commit is contained in:
Jonathan Dawber 2020-12-27 17:27:00 +00:00
parent 29c74f6cff
commit 6e8ecdbf03
3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
// Fallback to CMS Data
export const defatultPageProps = {
export const defaultPageProps = {
header: {
links: [
{

View File

@ -10,7 +10,7 @@ import { Text } from '@components/ui'
import { getConfig } from '@bigcommerce/storefront-data-hooks/api'
import getPage from '@bigcommerce/storefront-data-hooks/api/operations/get-page'
import getAllPages from '@bigcommerce/storefront-data-hooks/api/operations/get-all-pages'
import { defatultPageProps } from '@lib/defaults'
import { defaultPageProps } from '@lib/defaults'
export async function getStaticProps({
preview,
@ -34,7 +34,7 @@ export async function getStaticProps({
}
return {
props: { ...defatultPageProps, pages, page },
props: { ...defaultPageProps, pages, page },
revalidate: 60 * 60, // Every hour
}
}

View File

@ -6,7 +6,7 @@ import { Layout } from '@components/common'
import { Heart } from '@components/icons'
import { Text, Container } from '@components/ui'
import { WishlistCard } from '@components/wishlist'
import { defatultPageProps } from '@lib/defaults'
import { defaultPageProps } from '@lib/defaults'
export async function getStaticProps({
preview,
@ -15,7 +15,7 @@ export async function getStaticProps({
const config = getConfig({ locale })
const { pages } = await getAllPages({ config, preview })
return {
props: { ...defatultPageProps, pages },
props: { ...defaultPageProps, pages },
}
}