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