实现响应式导航栏组件
This commit is contained in:
@@ -4,8 +4,9 @@ import {Metadata} from 'next'
|
||||
import './globals.css'
|
||||
import localFont from 'next/font/local'
|
||||
import {Toaster} from '@/components/ui/sonner'
|
||||
import StoreProvider from '@/components/providers/StoreProvider'
|
||||
import Stores from '@/app/stores'
|
||||
import {getProfile} from '@/actions/auth'
|
||||
import Effects from '@/app/effects'
|
||||
|
||||
const font = localFont({
|
||||
src: './NotoSansSC-VariableFont_wght.ttf',
|
||||
@@ -28,9 +29,11 @@ export default async function RootLayout({
|
||||
return (
|
||||
<html lang="zh-CN">
|
||||
<body className={`${font.className}`}>
|
||||
<StoreProvider user={user}>
|
||||
{children}
|
||||
</StoreProvider>
|
||||
<Stores user={user}>
|
||||
<Effects>
|
||||
{children}
|
||||
</Effects>
|
||||
</Stores>
|
||||
<Toaster position="top-center" richColors expand/>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user