From 863c2c5b6e004a93ff2b5fcd0722f6952f2f8872 Mon Sep 17 00:00:00 2001 From: Joel Varty Date: Mon, 21 Jun 2021 16:08:29 -0400 Subject: [PATCH] updates --- components/agility-global/AgilityPage.tsx | 13 +- components/common/Footer/Footer.tsx | 20 ++- components/common/Head/Head.tsx | 2 +- components/common/Navbar/Navbar.tsx | 14 +- pagesBAK/XXXpages.tsx.bak | 86 ----------- pagesBAK/cart.tsx | 177 ---------------------- pagesBAK/orders.tsx | 42 ----- pagesBAK/product/[slug].tsx | 81 ---------- pagesBAK/profile.tsx | 48 ------ pagesBAK/search.tsx | 9 -- pagesBAK/wishlist.tsx | 71 --------- 11 files changed, 32 insertions(+), 531 deletions(-) delete mode 100644 pagesBAK/XXXpages.tsx.bak delete mode 100644 pagesBAK/cart.tsx delete mode 100644 pagesBAK/orders.tsx delete mode 100644 pagesBAK/product/[slug].tsx delete mode 100644 pagesBAK/profile.tsx delete mode 100644 pagesBAK/search.tsx delete mode 100644 pagesBAK/wishlist.tsx diff --git a/components/agility-global/AgilityPage.tsx b/components/agility-global/AgilityPage.tsx index 081469aa9..f76ea7dac 100644 --- a/components/agility-global/AgilityPage.tsx +++ b/components/agility-global/AgilityPage.tsx @@ -1,5 +1,6 @@ import pageTemplates from "components/agility-pageTemplates" import Head from 'next/head' +import { Text } from '@components/ui' const AgilityPage = ({ agilityProps, error, revalidate }: { agilityProps: any, error?: any, revalidate?: any }) => { @@ -18,9 +19,14 @@ const AgilityPage = ({ agilityProps, error, revalidate }: { agilityProps: any, e return ( <> - Page Not Found - {pageTitle} + Page Not Found - {pageTitle} -
Page not found.
+
+ Not Found + + The requested page doesn't exist or you don't have access to it. + +
) } @@ -37,6 +43,9 @@ const AgilityPage = ({ agilityProps, error, revalidate }: { agilityProps: any, e <> {agilityProps.sitemapNode?.title} - {pageTitle} + + + diff --git a/components/common/Footer/Footer.tsx b/components/common/Footer/Footer.tsx index 9ea384668..a955d5a49 100644 --- a/components/common/Footer/Footer.tsx +++ b/components/common/Footer/Footer.tsx @@ -22,23 +22,27 @@ const Footer: FC = ({ className, pages, agilityProps }) => { const { sitePages } = usePages(pages) const rootClassName = cn(s.root, className) - const siteData = agilityProps.globalData["sitedata"] + const siteData = agilityProps?.globalData["sitedata"] || null + + const agilityLinks = siteData?.links || [] return (