chore: move fragments
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
fragment AccountPage on AccountPage {
|
||||
title
|
||||
url
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
#import "./AccountPage.graphql"
|
||||
#import "./LoyaltyPage.graphql"
|
||||
#import "../../PageLink/AccountPageLink.graphql"
|
||||
#import "../../PageLink/LoyaltyPageLink.graphql"
|
||||
|
||||
fragment AccountPageContentDynamicContent on AccountPageContentDynamicContent {
|
||||
dynamic_content {
|
||||
@@ -11,8 +11,8 @@ fragment AccountPageContentDynamicContent on AccountPageContentDynamicContent {
|
||||
linkConnection {
|
||||
edges {
|
||||
node {
|
||||
...LoyaltyPage
|
||||
...AccountPage
|
||||
...LoyaltyPageLink
|
||||
...AccountPageLink
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
#import "../PageLink/AccountPageLink.graphql"
|
||||
#import "../PageLink/ContentPageLink.graphql"
|
||||
#import "../PageLink/LoyaltyPageLink.graphql"
|
||||
#import "../../PageLink/AccountPageLink.graphql"
|
||||
#import "../../PageLink/ContentPageLink.graphql"
|
||||
#import "../../PageLink/LoyaltyPageLink.graphql"
|
||||
|
||||
fragment AccountPageContentShortcuts on AccountPageContentShortcuts {
|
||||
shortcuts {
|
||||
@@ -1,4 +0,0 @@
|
||||
fragment LoyaltyPage on LoyaltyPage {
|
||||
title
|
||||
url
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
#import "../Fragments/MyPages/AccountPageContentDynamicContent.graphql"
|
||||
#import "../Fragments/MyPages/AccountPageContentShortcuts.graphql"
|
||||
#import "../Fragments/MyPages/AccountPage/AccountPageContentDynamicContent.graphql"
|
||||
#import "../Fragments/MyPages/AccountPage/AccountPageContentShortcuts.graphql"
|
||||
|
||||
query GetAccountPage($locale: String!, $url: String!) {
|
||||
all_account_page(limit: 1, locale: $locale, where: { url: $url }) {
|
||||
|
||||
@@ -29,7 +29,7 @@ export const accountPageQueryRouter = router({
|
||||
getBenefits: publicProcedure
|
||||
.input(z.object({ lang: z.nativeEnum(Lang) }))
|
||||
.query(async ({ input }) => {
|
||||
const url = "/my-pages/overview"
|
||||
const url = "/my-pages/benefits"
|
||||
const accountPage = await request<GetAccountPageData>(
|
||||
GetAccountPage,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user