chore(SW-194): ContentPage Accordion

This commit is contained in:
Matilda Landström
2024-10-08 12:26:15 +02:00
parent 166ddca0e0
commit 6265d6b7dc
18 changed files with 374 additions and 12 deletions

View File

@@ -8,7 +8,6 @@
#import "../../Fragments/Blocks/Table.graphql"
#import "../../Fragments/Blocks/TextCols.graphql"
#import "../../Fragments/Blocks/UspGrid.graphql"
#import "../../Fragments/ContentPage/NavigationLinks.graphql"
#import "../../Fragments/Sidebar/Content.graphql"
@@ -26,6 +25,7 @@ query GetContentPage($locale: String!, $uid: String!) {
}
blocks {
__typename
...Accordion_ContentPage
...CardsGrid_ContentPage
...Content_ContentPage
...DynamicContent_ContentPage
@@ -33,7 +33,6 @@ query GetContentPage($locale: String!, $uid: String!) {
...Table_ContentPage
...TextCols_ContentPage
...UspGrid_ContentPage
...Accordion_ContentPage
}
sidebar {
__typename
@@ -84,10 +83,6 @@ query GetContentPageRefs($locale: String!, $uid: String!) {
__typename
...Accordion_ContentPageRefs
...CardsGrid_ContentPageRefs
...Content_ContentPageRefs
...DynamicContent_ContentPageRefs
...Shortcuts_ContentPageRefs
...TextCols_ContentPageRef
...UspGrid_ContentPageRefs
}
sidebar {

View File

@@ -1,10 +1,66 @@
#import "../../Fragments/PageLink/AccountPageLink.graphql"
#import "../../Fragments/PageLink/ContentPageLink.graphql"
#import "../../Fragments/PageLink/HotelPageLink.graphql"
#import "../../Fragments/PageLink/LoyaltyPageLink.graphql"
query GetHotelPage($locale: String!, $uid: String!) {
hotel_page(locale: $locale, uid: $uid) {
hotel_page_id
title
url
faq {
__typename
title
global_hotel_faqConnection {
edges {
node {
... on Accordion {
__typename
title
questions {
question
answer {
json
embedded_itemsConnection {
edges {
node {
__typename
... on ContentPage {
__typename
title
url
system {
...System
}
web {
original_url
}
}
}
}
}
}
}
}
}
}
}
hotel_specific_faq {
questions {
answer {
json
embedded_itemsConnection {
edges {
node {
__typename
}
}
}
}
question
}
}
}
content {
__typename
... on HotelPageContentUpcomingActivitiesCard {