From 7f8d9b8bbc5f5a25916581fc8f7131a3714efb95 Mon Sep 17 00:00:00 2001 From: StephDietz Date: Thu, 20 Apr 2023 08:57:27 -0500 Subject: [PATCH] merge rebase --- components/layout/footer.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/components/layout/footer.tsx b/components/layout/footer.tsx index fd2e9f947..0c690f251 100644 --- a/components/layout/footer.tsx +++ b/components/layout/footer.tsx @@ -8,14 +8,16 @@ import { getMenu } from 'lib/shopify'; import { Menu } from 'lib/shopify/types'; export default async function Footer() { + const currentYear = new Date().getFullYear(); + const copyrightDate = 2023 + (currentYear > 2023 ? `-${currentYear}` : ''); const menu = await getMenu('next-js-frontend-footer-menu'); return ( -