From 8698794c96d1fc9819995ab41f2048aa9b426711 Mon Sep 17 00:00:00 2001 From: B Date: Sat, 9 Jan 2021 12:36:48 -0300 Subject: [PATCH] Fix Typo (#151) * Fix typo (#135) The defaultPageProps object had a typo in the name Co-authored-by: B * changes * changes Co-authored-by: JD --- lib/defaults.ts | 2 +- pages/[...pages].tsx | 8 ++++---- pages/_document.tsx | 8 +------- pages/wishlist.tsx | 4 ++-- 4 files changed, 8 insertions(+), 14 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 b90af8b6f..6caac1720 100644 --- a/pages/[...pages].tsx +++ b/pages/[...pages].tsx @@ -3,14 +3,14 @@ import type { GetStaticPropsContext, InferGetStaticPropsType, } from 'next' +import { Text } from '@components/ui' +import { Layout } from '@components/common' 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' +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/_document.tsx b/pages/_document.tsx index c2baf322e..dcd214e4f 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -1,10 +1,4 @@ -import Document, { - DocumentContext, - Head, - Html, - Main, - NextScript, -} from 'next/document' +import Document, { Head, Html, Main, NextScript } from 'next/document' class MyDocument extends Document { render() { diff --git a/pages/wishlist.tsx b/pages/wishlist.tsx index b52c78d47..a2337490b 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 }, } }