Merged in feat/LOY-419-highlight-promo-campaigns (pull request #3308)

feat(LOY-419): add promo campaigns to Campaign Overview Page

* feat(LOY-419): add promo campaigns as top campaign and all campaigns

* refactor(LOY-419)


Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
Matilda Landström
2025-12-10 12:29:23 +00:00
parent fde77a06ce
commit 5bcbc23732
9 changed files with 181 additions and 47 deletions

View File

@@ -1,6 +1,7 @@
import { gql } from "graphql-tag"
import { CampaignPageRef } from "../CampaignPage/Ref.graphql"
import { PromoCampaignPageRef } from "../PromoCampaignPage/Ref.graphql"
export const AllCampaigns = gql`
fragment AllCampaigns on CampaignOverviewPageBlocksAllCampaigns {
@@ -21,6 +22,17 @@ export const AllCampaigns = gql`
locale
}
}
... on PromoCampaignPage {
url
card_content {
heading
image
text
}
system {
locale
}
}
}
}
}
@@ -36,10 +48,12 @@ export const AllCampaignsRefs = gql`
node {
__typename
...CampaignPageRef
...PromoCampaignPageRef
}
}
}
}
}
${CampaignPageRef}
${PromoCampaignPageRef}
`