feat(SW-266): Replacing static metadata with data from Contentstack on Loyalty pages and Account Pages

Approved-by: Simon.Emanuelsson
This commit is contained in:
Pontus Dreij
2024-08-22 13:49:34 +00:00
14 changed files with 287 additions and 8 deletions

View File

@@ -0,0 +1,12 @@
#import "../Fragments/LoyaltyPage/MetaData.graphql"
query GetLoyaltyPageMetaData($locale: String!, $url: String!) {
all_loyalty_page(locale: $locale, where: { url: $url }) {
items {
...LoyaltyPageMetaData
system {
uid
}
}
}
}

View File

@@ -0,0 +1,12 @@
#import "../Fragments/MyPages/MetaData.graphql"
query GetMyPagesMetaData($locale: String!, $url: String!) {
all_account_page(locale: $locale, where: { url: $url }) {
items {
...MyPagesMetaData
system {
uid
}
}
}
}