feat(SW-285): add missing code for dynamic content

This commit is contained in:
Chuma McPhoy
2024-09-02 20:04:58 +02:00
parent 1c2a34591b
commit 60636d8cbe
12 changed files with 206 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
#import "../Fragments/Blocks/Card.graphql"
#import "../Fragments/Blocks/LoyaltyCard.graphql"
#import "../Fragments/Blocks/Refs/Card.graphql"
#import "../Fragments/Blocks/Refs/LoyaltyCard.graphql"
@@ -83,6 +84,27 @@ query GetContentPage($locale: String!, $uid: String!) {
}
}
}
... on ContentPageBlocksDynamicContent {
__typename
dynamic_content {
title
subtitle
component
link {
text
pageConnection {
edges {
node {
# TODO: Link HotelPage
...ContentPageLink
...LoyaltyPageLink
}
}
totalCount
}
}
}
}
}
title
header {
@@ -164,6 +186,22 @@ query GetContentPageRefs($locale: String!, $uid: String!) {
}
}
}
... on ContentPageBlocksDynamicContent {
__typename
dynamic_content {
link {
pageConnection {
edges {
node {
__typename
...ContentPageRef
...LoyaltyPageRef
}
}
}
}
}
}
}
system {
...System