fix: trpc endpoint for footer data

This commit is contained in:
Christel Westerberg
2024-05-30 14:25:11 +02:00
parent fbb29c93c9
commit 2c102c62e0
16 changed files with 154 additions and 90 deletions

View File

@@ -1,6 +1,6 @@
#import "../Image.graphql"
fragment AppDownloads on Footer {
fragment AppDownloads on CurrentFooter {
app_downloads {
title
app_store {

View File

@@ -1,6 +1,6 @@
#import "../Image.graphql"
fragment Logo on Footer {
fragment Logo on CurrentFooter {
logoConnection {
edges {
node {

View File

@@ -1,4 +1,4 @@
fragment Navigation on Footer {
fragment Navigation on CurrentFooter {
navigation {
links {
href

View File

@@ -1,4 +1,4 @@
fragment SocialMedia on Footer {
fragment SocialMedia on CurrentFooter {
social_media {
title
facebook {

View File

@@ -1,6 +1,6 @@
#import "../Image.graphql"
fragment TripAdvisor on Footer {
fragment TripAdvisor on CurrentFooter {
trip_advisor {
logoConnection {
edges {

View File

@@ -4,8 +4,8 @@
#import "../Fragments/Footer/SocialMedia.graphql"
#import "../Fragments/Footer/TripAdvisor.graphql"
query GetFooter($locale: String!) {
all_footer(limit: 1, locale: $locale) {
query GetCurrentFooter($locale: String!) {
all_current_footer(limit: 1, locale: $locale) {
items {
title
system {