♻️ 使用 NextJS 重构 #1

Merged
LittleSheep merged 12 commits from refactor/v2 into master 2024-02-24 14:19:52 +00:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 4b05046a17 - Show all commits

View File

@ -15,12 +15,14 @@ import "./globals.css";
import AppShell from "@/components/AppShell";
export const runtime = "edge";
export const metadata: Metadata = {
title: {
default: SITE_NAME,
template: `${SITE_NAME} | %s`
},
description: SITE_DESCRIPTION,
description: SITE_DESCRIPTION
};
export default function RootLayout({ children }: Readonly<{

View File

@ -62,7 +62,7 @@ export function AppNavigation({ showClose, onClose }: {
<Divider />
<List>
{NAVIGATION_ITEMS.map((item, idx) => {
return item.divider ? <Divider /> : (
return item.divider ? <Divider key={idx} /> : (
<Link key={idx} href={item.link ?? "/"} passHref>
<ListItemButton>
<ListItemIcon>{item.icon}</ListItemIcon>