From 23e2f7bc9eb7f6b589c9ed4fdbdf5481edb618f2 Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 11 Dec 2024 15:42:10 -0600 Subject: [PATCH] templates: change names of data variables to improve clarity between data and elements (#9912) Renames `header` to `headerData` and other props to `data` so that it's clearer for people learning Nextjs or React. --- templates/website/src/Footer/Component.tsx | 4 ++-- templates/website/src/Header/Component.client.tsx | 6 +++--- templates/website/src/Header/Component.tsx | 4 ++-- templates/website/src/Header/Nav/index.tsx | 4 ++-- templates/with-vercel-website/src/Footer/Component.tsx | 4 ++-- .../with-vercel-website/src/Header/Component.client.tsx | 6 +++--- templates/with-vercel-website/src/Header/Component.tsx | 4 ++-- templates/with-vercel-website/src/Header/Nav/index.tsx | 4 ++-- 8 files changed, 18 insertions(+), 18 deletions(-) diff --git a/templates/website/src/Footer/Component.tsx b/templates/website/src/Footer/Component.tsx index 99aa1ccc491..17771447f87 100644 --- a/templates/website/src/Footer/Component.tsx +++ b/templates/website/src/Footer/Component.tsx @@ -9,9 +9,9 @@ import { CMSLink } from '@/components/Link' import { Logo } from '@/components/Logo/Logo' export async function Footer() { - const footer: Footer = await getCachedGlobal('footer', 1)() + const footerData: Footer = await getCachedGlobal('footer', 1)() - const navItems = footer?.navItems || [] + const navItems = footerData?.navItems || [] return (