mirror of
https://litchi.icu/ngc2207/judge4c-latest.git
synced 2025-07-13 17:24:30 +00:00
refactor: suppress hydration warning in root layout and change url of app-sidebar
This commit is contained in:
parent
4f816e248a
commit
7e91eea2e3
@ -21,7 +21,7 @@ export default function RootLayout({
|
|||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}>) {
|
}>) {
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en" suppressHydrationWarning>
|
||||||
<body className={cn("font-sans antialiased", inter.variable)}>
|
<body className={cn("font-sans antialiased", inter.variable)}>
|
||||||
<SidebarProvider>
|
<SidebarProvider>
|
||||||
<AppSidebar />
|
<AppSidebar />
|
||||||
|
@ -44,6 +44,10 @@ const data = {
|
|||||||
title: "提交记录",
|
title: "提交记录",
|
||||||
url: "#",
|
url: "#",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "新建",
|
||||||
|
url: "/problems/new",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user