移除冗余的安装包

This commit is contained in:
wmp
2025-09-17 18:14:11 +08:00
parent b39f6677a4
commit d5f7efc319
3 changed files with 7 additions and 18 deletions

View File

@@ -32,7 +32,6 @@
"@eslint/eslintrc": "^3",
"@prisma/client": "^6.16.2",
"@tailwindcss/postcss": "^4",
"@types/next-auth": "^3.15.0",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",

View File

@@ -1,6 +1,6 @@
import type { Metadata } from "next";
import "./globals.css";
import Providers from "./providers";
import { Toaster } from "sonner";
export const metadata: Metadata = {
title: "Create Next App",
@@ -14,8 +14,11 @@ export default function RootLayout({
}>) {
return (
<html lang="zh-Hans">
<body className={`antialiased`}>
<Providers>{children}</Providers>
<body
className={`antialiased`}
>
{children}
<Toaster richColors />
</body>
</html>
);

View File

@@ -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>
);
}