From 6e8ecdbf031c916d354e74bd12a2cbafc1e49036 Mon Sep 17 00:00:00 2001 From: Jonathan Dawber Date: Sun, 27 Dec 2020 17:27:00 +0000 Subject: [PATCH] Fix typo The defaultPageProps object had a typo in the name --- lib/defaults.ts | 2 +- pages/[...pages].tsx | 4 ++-- pages/wishlist.tsx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/defaults.ts b/lib/defaults.ts index db0503a7a..e74227732 100644 --- a/lib/defaults.ts +++ b/lib/defaults.ts @@ -1,6 +1,6 @@ // Fallback to CMS Data -export const defatultPageProps = { +export const defaultPageProps = { header: { links: [ { diff --git a/pages/[...pages].tsx b/pages/[...pages].tsx index f69bb6746..c49aabbf0 100644 --- a/pages/[...pages].tsx +++ b/pages/[...pages].tsx @@ -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 } } diff --git a/pages/wishlist.tsx b/pages/wishlist.tsx index ee81857de..31d9cf920 100644 --- a/pages/wishlist.tsx +++ b/pages/wishlist.tsx @@ -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 }, } }