完善产品购买页面,抽取公共组件,优化导航链接

This commit is contained in:
2025-04-08 11:21:58 +08:00
parent a2c18a1be8
commit ba07c79b04
42 changed files with 1481 additions and 666 deletions

View File

@@ -3,6 +3,8 @@ import {Metadata} from 'next'
import './globals.css'
import localFont from 'next/font/local'
import {Toaster} from '@/components/ui/sonner'
import AuthProvider from '@/components/providers/AuthProvider'
import {getProfile} from '@/actions/auth/auth'
const font = localFont({
src: './NotoSansSC-VariableFont_wght.ttf',
@@ -13,7 +15,7 @@ export const metadata: Metadata = {
description: 'Generated by create next app',
}
export default function RootLayout({
export default async function RootLayout({
children,
}: Readonly<{
children: ReactNode
@@ -21,8 +23,10 @@ export default function RootLayout({
return (
<html lang="zh-Cn">
<body className={`${font.className}`}>
{children}
<Toaster position={'top-center'}/>
<AuthProvider>
{children}
</AuthProvider>
<Toaster position={'top-center'} richColors expand/>
</body>
</html>
)