feat: add AccountPage handling
This commit is contained in:
@@ -3,6 +3,7 @@ import { Edges } from "../utils/edges"
|
||||
import { Typename } from "../utils/typename"
|
||||
|
||||
export enum PageLinkEnum {
|
||||
AccountPage = "AccountPage",
|
||||
CodeDefinedPage = "CodeDefinedPage",
|
||||
ContentPage = "ContentPage",
|
||||
}
|
||||
@@ -17,6 +18,16 @@ export type MenuItem = {
|
||||
|
||||
export type SidebarProps = { menuItems: MenuItem[] }
|
||||
|
||||
export type AccountPageLink = Typename<
|
||||
{
|
||||
uid: string
|
||||
title: string
|
||||
url: string
|
||||
system: { uid: string }
|
||||
},
|
||||
PageLinkEnum.AccountPage
|
||||
>
|
||||
|
||||
export type CodeDefinedPageLink = Typename<
|
||||
{
|
||||
uid: string
|
||||
@@ -37,7 +48,7 @@ export type ContentPageLink = Typename<
|
||||
PageLinkEnum.ContentPage
|
||||
>
|
||||
|
||||
export type PageLink = CodeDefinedPageLink | ContentPageLink
|
||||
export type PageLink = CodeDefinedPageLink | ContentPageLink | AccountPageLink
|
||||
|
||||
export type NavigationItem = {
|
||||
item: {
|
||||
|
||||
Reference in New Issue
Block a user