refactor: extract PageLinks fragments to separate files

This commit is contained in:
Arvid Norlin
2024-04-19 13:12:46 +02:00
parent b7782b61a7
commit a066202e14
5 changed files with 36 additions and 27 deletions

View File

@@ -1,3 +1,7 @@
#import "../PageLinks/AccountPageLink.graphql"
#import "../PageLinks/ContentPageLink.graphql"
#import "../PageLinks/LoyaltyPageLink.graphql"
fragment AccountPageContentShortcuts on AccountPageContentShortcuts {
shortcuts {
title
@@ -16,30 +20,3 @@ fragment AccountPageContentShortcuts on AccountPageContentShortcuts {
}
}
}
fragment AccountPageLink on AccountPage {
system {
locale
uid
}
title
url
}
fragment LoyaltyPageLink on LoyaltyPage {
system {
locale
uid
}
title
url
}
fragment ContentPageLink on ContentPage {
system {
locale
uid
}
title
url
}