refactor: reuse query code for both loyalty and account pages

This commit is contained in:
Matilda Landström
2024-05-27 16:13:44 +02:00
parent 0b694f6a74
commit fb4fbb1cbd
9 changed files with 150 additions and 271 deletions

View File

@@ -27,12 +27,8 @@ interface MyPagesBreadcrumbs {
interface AllPageResponse extends AllRequestResponse<MyPagesBreadcrumbs> {}
export interface GetAccountPageBreadcrumbsData {
all_account_page: AllPageResponse
}
export interface GetLoyaltyPageBreadcrumbsData {
all_loyalty_page: AllPageResponse
export interface GetMyPagesBreadcrumbsData {
all_page: AllPageResponse
}
interface MyPagesBreadcrumbRefs extends System {
@@ -46,10 +42,6 @@ interface MyPagesBreadcrumbRefs extends System {
interface AllPageRefsResponse
extends AllRequestResponse<MyPagesBreadcrumbRefs> {}
export interface GetAccountPageBreadcrumbsRefsData {
all_account_page: AllPageRefsResponse
}
export interface GetLoyaltyPageBreadcrumbsRefsData {
all_loyalty_page: AllPageRefsResponse
export interface GetMyPagesBreadcrumbsRefsData {
all_page: AllPageRefsResponse
}