feat: add handling of external linking in My Pages Navigation
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user