移除冗余的安装包
This commit is contained in:
@@ -32,7 +32,6 @@
|
|||||||
"@eslint/eslintrc": "^3",
|
"@eslint/eslintrc": "^3",
|
||||||
"@prisma/client": "^6.16.2",
|
"@prisma/client": "^6.16.2",
|
||||||
"@tailwindcss/postcss": "^4",
|
"@tailwindcss/postcss": "^4",
|
||||||
"@types/next-auth": "^3.15.0",
|
|
||||||
"@types/node": "^20",
|
"@types/node": "^20",
|
||||||
"@types/react": "^19",
|
"@types/react": "^19",
|
||||||
"@types/react-dom": "^19",
|
"@types/react-dom": "^19",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
import Providers from "./providers";
|
import { Toaster } from "sonner";
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Create Next App",
|
title: "Create Next App",
|
||||||
@@ -14,9 +14,12 @@ export default function RootLayout({
|
|||||||
}>) {
|
}>) {
|
||||||
return (
|
return (
|
||||||
<html lang="zh-Hans">
|
<html lang="zh-Hans">
|
||||||
<body className={`antialiased`}>
|
<body
|
||||||
<Providers>{children}</Providers>
|
className={`antialiased`}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
<Toaster richColors />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
"use client";
|
|
||||||
|
|
||||||
import { SessionProvider } from "next-auth/react";
|
|
||||||
import { Toaster } from "sonner";
|
|
||||||
|
|
||||||
export default function Providers({ children }: { children: React.ReactNode }) {
|
|
||||||
return (
|
|
||||||
<SessionProvider>
|
|
||||||
{children}
|
|
||||||
<Toaster richColors />
|
|
||||||
</SessionProvider>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user