Update dependencies and import dynamic method
This commit updates multiple dependencies in the pnpm-lock.yaml file and imports the dynamic method from 'next/dynamic' in the site-header-account-section.tsx file. These updates are part of routine maintenance and improvement of the codebase. The import allows for dynamic imports, which can enhance performance.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Urbanist as HeadingFont, Inter as SansFont } from 'next/font/google';
|
||||
import Head from 'next/head';
|
||||
import { cookies, headers } from 'next/headers';
|
||||
|
||||
import { Toaster } from '@kit/ui/sonner';
|
||||
@@ -36,7 +37,9 @@ export default async function RootLayout({
|
||||
|
||||
return (
|
||||
<html lang={language} className={getClassName(theme)}>
|
||||
<CsrfTokenMeta />
|
||||
<Head>
|
||||
<CsrfTokenMeta />
|
||||
</Head>
|
||||
|
||||
<body>
|
||||
<RootProviders theme={theme} lang={language}>
|
||||
@@ -51,7 +54,7 @@ export default async function RootLayout({
|
||||
|
||||
function getClassName(theme?: string) {
|
||||
const dark = theme === 'dark';
|
||||
const light = theme === 'light';
|
||||
const light = !dark;
|
||||
|
||||
return cn(
|
||||
'min-h-screen bg-background antialiased',
|
||||
|
||||
Reference in New Issue
Block a user