refactor: move LoyaltyPageBreadcrumbs fragment to separate file
This commit is contained in:
23
lib/graphql/Fragments/LoyaltyPage/Breadcrumbs.graphql
Normal file
23
lib/graphql/Fragments/LoyaltyPage/Breadcrumbs.graphql
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
fragment LoyaltyPageBreadcrumbs on LoyaltyPage {
|
||||||
|
web {
|
||||||
|
breadcrumbs {
|
||||||
|
title
|
||||||
|
parentsConnection {
|
||||||
|
edges {
|
||||||
|
node {
|
||||||
|
... on AccountPage {
|
||||||
|
breadcrumbs {
|
||||||
|
title
|
||||||
|
}
|
||||||
|
system {
|
||||||
|
locale
|
||||||
|
uid
|
||||||
|
}
|
||||||
|
url
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -21,27 +21,3 @@ fragment AccountPageBreadcrumbs on AccountPage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment LoyaltyPageBreadcrumbs on LoyaltyPage {
|
|
||||||
web {
|
|
||||||
breadcrumbs {
|
|
||||||
title
|
|
||||||
parentsConnection {
|
|
||||||
edges {
|
|
||||||
node {
|
|
||||||
... on AccountPage {
|
|
||||||
breadcrumbs {
|
|
||||||
title
|
|
||||||
}
|
|
||||||
system {
|
|
||||||
locale
|
|
||||||
uid
|
|
||||||
}
|
|
||||||
url
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#import "../Fragments/MyPages/Breadcrumbs.graphql"
|
#import "../Fragments/LoyaltyPage/Breadcrumbs.graphql"
|
||||||
#import "../Fragments/Refs/Breadcrumbs.graphql"
|
#import "../Fragments/Refs/Breadcrumbs.graphql"
|
||||||
|
|
||||||
query GetLoyaltyPageBreadcrumbs($locale: String!, $url: String!) {
|
query GetLoyaltyPageBreadcrumbs($locale: String!, $url: String!) {
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#import "../Fragments/Image.graphql"
|
#import "../Fragments/Image.graphql"
|
||||||
#import "../Fragments/Blocks/Card.graphql"
|
#import "../Fragments/Blocks/Card.graphql"
|
||||||
#import "../Fragments/Blocks/Refs/Card.graphql"
|
#import "../Fragments/Blocks/Refs/Card.graphql"
|
||||||
|
#import "../Fragments/LoyaltyPage/Breadcrumbs.graphql"
|
||||||
#import "../Fragments/PageLink/AccountPageLink.graphql"
|
#import "../Fragments/PageLink/AccountPageLink.graphql"
|
||||||
#import "../Fragments/PageLink/ContentPageLink.graphql"
|
#import "../Fragments/PageLink/ContentPageLink.graphql"
|
||||||
#import "../Fragments/PageLink/LoyaltyPageLink.graphql"
|
#import "../Fragments/PageLink/LoyaltyPageLink.graphql"
|
||||||
@@ -9,7 +10,6 @@
|
|||||||
#import "../Fragments/Refs/ContentPage.graphql"
|
#import "../Fragments/Refs/ContentPage.graphql"
|
||||||
#import "../Fragments/Refs/LoyaltyPage.graphql"
|
#import "../Fragments/Refs/LoyaltyPage.graphql"
|
||||||
#import "../Fragments/Refs/System.graphql"
|
#import "../Fragments/Refs/System.graphql"
|
||||||
#import "../Fragments/MyPages/Breadcrumbs.graphql"
|
|
||||||
|
|
||||||
query GetLoyaltyPage($locale: String!, $uid: String!) {
|
query GetLoyaltyPage($locale: String!, $uid: String!) {
|
||||||
loyalty_page(uid: $uid, locale: $locale) {
|
loyalty_page(uid: $uid, locale: $locale) {
|
||||||
|
|||||||
Reference in New Issue
Block a user