From 2c102c62e0c7f8ed92ead77dfd0105751f55718b Mon Sep 17 00:00:00 2001 From: Christel Westerberg Date: Thu, 30 May 2024 14:25:11 +0200 Subject: [PATCH] fix: trpc endpoint for footer data --- app/[lang]/(live)/layout.tsx | 2 +- app/[lang]/(live-current)/layout.tsx | 2 +- app/[lang]/(preview-current)/layout.tsx | 2 +- components/Current/Footer/footer.module.css | 14 ++- components/Current/Footer/index.tsx | 24 +--- .../Current/Footer/navigation.module.css | 1 + .../Fragments/Footer/AppDownloads.graphql | 2 +- lib/graphql/Fragments/Footer/Logo.graphql | 2 +- .../Fragments/Footer/Navigation.graphql | 2 +- .../Fragments/Footer/SocialMedia.graphql | 2 +- .../Fragments/Footer/TripAdvisor.graphql | 2 +- .../{Footer.graphql => CurrentFooter.graphql} | 4 +- server/routers/contentstack/config/output.ts | 107 ++++++++++++++++++ server/routers/contentstack/config/query.ts | 24 ++++ types/components/current/footer.ts | 2 +- types/requests/footer.ts | 52 --------- 16 files changed, 154 insertions(+), 90 deletions(-) rename lib/graphql/Query/{Footer.graphql => CurrentFooter.graphql} (83%) delete mode 100644 types/requests/footer.ts diff --git a/app/[lang]/(live)/layout.tsx b/app/[lang]/(live)/layout.tsx index e9628b37a..54e0d41e8 100644 --- a/app/[lang]/(live)/layout.tsx +++ b/app/[lang]/(live)/layout.tsx @@ -53,7 +53,7 @@ export default async function RootLayout({
{children} -