feat: add handling of external linking in My Pages Navigation

This commit is contained in:
Arvid Norlin
2024-05-03 10:33:35 +02:00
parent ff8053c13a
commit bfaacd7b5d
5 changed files with 18 additions and 5 deletions

View File

@@ -15,6 +15,7 @@ export type MenuItem = {
subItems: MenuItem[] | null
uid: string
url: string
originalUrl: string | undefined
}
export type SidebarProps = {
@@ -28,19 +29,20 @@ interface NavigationLink {
}
url: string
title: string
web?: { original_url: string }
}
export interface AccountPageLink
extends NavigationLink,
TypenameInterface<PageLinkEnum.AccountPage> { }
TypenameInterface<PageLinkEnum.AccountPage> {}
export interface LoyaltyPageLink
extends NavigationLink,
TypenameInterface<PageLinkEnum.LoyaltyPage> { }
TypenameInterface<PageLinkEnum.LoyaltyPage> {}
export interface ContentPageLink
extends NavigationLink,
TypenameInterface<PageLinkEnum.ContentPage> { }
TypenameInterface<PageLinkEnum.ContentPage> {}
export type PageLink = ContentPageLink | AccountPageLink | LoyaltyPageLink