feat: add JoinLoyalty component

This commit is contained in:
Christel Westerberg
2024-04-19 13:11:02 +02:00
parent b57665ce62
commit 3a0c8610dc
15 changed files with 238 additions and 38 deletions

View File

@@ -0,0 +1,37 @@
query GetContactConfig($locale: String!) {
all_contact_config(locale: $locale) {
items {
email {
address
name
}
email_loyalty {
address
name
}
mailing_address {
name
street
zip
country
city
}
phone {
number
name
}
phone_loyalty {
name
number
}
title
visiting_address {
country
city
street
zip
}
}
total
}
}

View File

@@ -1,3 +1,5 @@
#import "../Fragments/Image.graphql"
query GetLoyaltyPage($locale: String!, $url: String!) {
all_loyalty_page(where: { url: $url, locale: $locale }) {
items {
@@ -56,12 +58,12 @@ query GetLoyaltyPage($locale: String!, $url: String!) {
}
title
sidebar {
... on LoyaltyPageSidebarLoyaltyJoinContact {
... on LoyaltyPageSidebarJoinLoyaltyContact {
__typename
loyalty_join_contact {
join_loyalty_contact {
title
contact {
... on LoyaltyPageSidebarLoyaltyJoinContactBlockContactContact {
... on LoyaltyPageSidebarJoinLoyaltyContactBlockContactContact {
__typename
contact {
contact_fields
@@ -71,19 +73,11 @@ query GetLoyaltyPage($locale: String!, $url: String!) {
login_button_text
body {
json
embedded_itemsConnection {
embedded_itemsConnection(limit: 30) {
edges {
node {
... on SysAsset {
title
dimension {
width
height
}
file_size
filename
url
}
__typename
...Image
}
}
}
@@ -98,16 +92,7 @@ query GetLoyaltyPage($locale: String!, $url: String!) {
embedded_itemsConnection {
edges {
node {
... on SysAsset {
title
url
file_size
filename
dimension {
width
height
}
}
...Image
}
}
}
@@ -123,7 +108,6 @@ query GetLoyaltyPage($locale: String!, $url: String!) {
title
}
}
original_url
seo_metadata {
description
title