From cde21647734e15cc8a4db4269cde6730c0726684 Mon Sep 17 00:00:00 2001
From: syntaxbullet
Date: Tue, 16 Jun 2026 14:25:58 +0200
Subject: [PATCH] feat: connect header and footer to cms as globals
---
.gitignore | 3 +
src/Footer/Component.tsx | 11 +-
src/Footer/RowLabel.tsx | 10 +-
src/Footer/config.ts | 121 +++++++-
src/Header/Nav/index.tsx | 5 +-
src/Header/RowLabel.tsx | 6 +-
src/Header/config.ts | 133 +++++++-
src/app/(frontend)/[[...slug]]/page.tsx | 13 +-
src/endpoints/seed/index.ts | 58 +---
src/payload-types.ts | 343 ++++++++++++++-------
src/spa/NextApp.tsx | 13 +-
src/spa/cmsNavigation.ts | 198 ++++++++++++
src/spa/components/layout/Layout.tsx | 384 ++++++++----------------
13 files changed, 842 insertions(+), 456 deletions(-)
create mode 100644 src/spa/cmsNavigation.ts
diff --git a/.gitignore b/.gitignore
index 7ad09c3..d5c96fb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,9 @@ node_modules
.next
next-env.d.ts
.vercel
+content.db
+*.sqlite
+*.sqlite3
# Payload default media upload directory
public/media/
diff --git a/src/Footer/Component.tsx b/src/Footer/Component.tsx
index 737a295..e3f2405 100644
--- a/src/Footer/Component.tsx
+++ b/src/Footer/Component.tsx
@@ -3,13 +3,12 @@ import Link from 'next/link'
import React from 'react'
import { ThemeSelector } from '@/providers/Theme/ThemeSelector'
-import { CMSLink } from '@/components/Link'
import { Logo } from '@/components/Logo/Logo'
export async function Footer() {
const footerData = await getCachedGlobal('footer', 1)()
- const navItems = footerData?.navItems || []
+ const linkColumns = footerData?.linkColumns || []
return (
{SOCIAL.map(s => )}