feat: add AccountPage handling

This commit is contained in:
Arvid Norlin
2024-04-11 10:22:43 +02:00
parent 631a82ee04
commit 21c5d12d55
3 changed files with 24 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ export default async function MyPagesLayout({
switch (node.__typename) {
case PageLinkEnum.ContentPage:
return node.web.url
case PageLinkEnum.AccountPage:
case PageLinkEnum.CodeDefinedPage:
return node.url
}
@@ -39,6 +40,7 @@ export default async function MyPagesLayout({
return navigationItems.map(({ item }): MenuItem => {
const { node } = item.pageConnection.edges[0]
console.log({ node })
const {
title,
system: { uid },