The defaultPageProps object had a typo in the name

Co-authored-by: B <curciobelen@gmail.com>
This commit is contained in:
JD 2021-01-09 15:20:56 +00:00 committed by GitHub
parent 66b8bdb6bb
commit e017f4ba7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

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

View File

@ -7,11 +7,13 @@ import getSlug from '@lib/get-slug'
import { missingLocaleInPages } from '@lib/usage-warns'
import { Layout } from '@components/common'
import { Text } from '@components/ui'
import { getConfig } from '@framework/api'
import getPage from '@framework/api/operations/get-page'
import getAllPages from '@framework/api/operations/get-all-pages'
import { defatultPageProps } from '@lib/defaults'
export async function getStaticProps({
preview,
params,
@ -34,7 +36,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 },
}
}