Fix/mypages clientside menu * feat: move mypages menu to client side * Merge branch 'master' of bitbucket.org:scandic-swap/web into fix/mypages-clientside-menu * wip * wip * wip * refactor: reorganize MyPages navigation logic and improve type definitions * refactor: enhance MyPagesMobileDropdown with loading states and skeletons * refactor: clean up header component and improve myPagesNavigation query structure * Merge branch 'master' of bitbucket.org:scandic-swap/web into fix/mypages-clientside-menu Approved-by: Linus Flood
11 lines
250 B
TypeScript
11 lines
250 B
TypeScript
type BaseLink = {
|
|
type: "link" | "withbadge"
|
|
text: string
|
|
href: string
|
|
}
|
|
|
|
type NormalLink = BaseLink & { type: "link" }
|
|
type LinkWithBadge = BaseLink & { type: "withbadge"; number: number }
|
|
|
|
export type MyPagesLink = NormalLink | LinkWithBadge
|