refactor: reuse query code for both loyalty and account pages
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user