feat(SW-187): Added tertiary links data
This commit is contained in:
22
lib/graphql/Fragments/Footer/Refs/TertiaryLinks.graphql
Normal file
22
lib/graphql/Fragments/Footer/Refs/TertiaryLinks.graphql
Normal file
@@ -0,0 +1,22 @@
|
||||
#import "../../Refs/LoyaltyPage/LoyaltyPage.graphql"
|
||||
#import "../../Refs/MyPages/AccountPage.graphql"
|
||||
#import "../../Refs/ContentPage/ContentPage.graphql"
|
||||
|
||||
fragment TertiaryLinksRef on Footer {
|
||||
__typename
|
||||
tertiary_links {
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...LoyaltyPageRef
|
||||
...ContentPageRef
|
||||
...AccountPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
28
lib/graphql/Fragments/Footer/TertiaryLinks.graphql
Normal file
28
lib/graphql/Fragments/Footer/TertiaryLinks.graphql
Normal file
@@ -0,0 +1,28 @@
|
||||
fragment TertiaryLinks on Footer {
|
||||
tertiary_links {
|
||||
open_in_new_tab
|
||||
link {
|
||||
href
|
||||
title
|
||||
}
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
... on AccountPage {
|
||||
title
|
||||
url
|
||||
}
|
||||
... on LoyaltyPage {
|
||||
title
|
||||
url
|
||||
}
|
||||
... on ContentPage {
|
||||
title
|
||||
url
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,8 +2,10 @@
|
||||
#import "../Fragments/Footer/MainLinks.graphql"
|
||||
#import "../Fragments/Footer/SecondaryLinks.graphql"
|
||||
#import "../Fragments/Footer/SocialMedia.graphql"
|
||||
#import "../Fragments/Footer/TertiaryLinks.graphql"
|
||||
#import "../Fragments/Footer/Refs/MainLinks.graphql"
|
||||
#import "../Fragments/Footer/Refs/SecondaryLinks.graphql"
|
||||
#import "../Fragments/Footer/Refs/TertiaryLinks.graphql"
|
||||
#import "../Fragments/Refs/System.graphql"
|
||||
|
||||
query GetFooter($locale: String!) {
|
||||
@@ -13,6 +15,7 @@ query GetFooter($locale: String!) {
|
||||
...SecondaryLinks
|
||||
...AppDownloads
|
||||
...SocialMedia
|
||||
...TertiaryLinks
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +25,7 @@ query GetFooterRef($locale: String!) {
|
||||
items {
|
||||
...MainLinksRef
|
||||
...SecondaryLinksRef
|
||||
...TertiaryLinksRef
|
||||
system {
|
||||
...System
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user