chore: move fragments

This commit is contained in:
Arvid Norlin
2024-04-19 15:40:40 +02:00
parent ea6890c9c6
commit 0dd8998ff8
6 changed files with 10 additions and 18 deletions

View File

@@ -1,4 +0,0 @@
fragment AccountPage on AccountPage {
title
url
}

View File

@@ -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
}
}
}

View File

@@ -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 {

View File

@@ -1,4 +0,0 @@
fragment LoyaltyPage on LoyaltyPage {
title
url
}

View File

@@ -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 }) {

View File

@@ -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,
{