mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
feat(layout): replace ModeToggle with Banner component in RootLayout
This commit is contained in:
parent
62ccb1fbcc
commit
11fa68c4b7
@ -1,6 +1,6 @@
|
|||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import { ModeToggle } from "@/components/mode-toggle";
|
import { Banner } from "@/components/banner";
|
||||||
import { ThemeProvider } from "@/components/theme-provider";
|
import { ThemeProvider } from "@/components/theme-provider";
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
@ -22,9 +22,7 @@ export default function RootLayout({
|
|||||||
enableSystem
|
enableSystem
|
||||||
disableTransitionOnChange
|
disableTransitionOnChange
|
||||||
>
|
>
|
||||||
<header className="h-14 flex items-center justify-end px-8 border-b">
|
<Banner className="h-12 flex items-center justify-center bg-muted text-foreground" />
|
||||||
<ModeToggle />
|
|
||||||
</header>
|
|
||||||
<main className="flex-1">
|
<main className="flex-1">
|
||||||
{children}
|
{children}
|
||||||
</main>
|
</main>
|
||||||
|
Loading…
Reference in New Issue
Block a user