完善产品购买页面,抽取公共组件,优化导航链接
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user