Disable Christmas theme and improve layout skeleton
Christmas decorations and theme logic have been disabled throughout the app, including the isDecember utility, layout, and related imports. Layout now shows a skeleton UI while mounting to prevent layout shift. Minor improvements to RevenueChart tooltip colors and ChatDetail request headers for better consistency.
This commit is contained in:
@@ -4,6 +4,7 @@ export default function Document() {
|
||||
return (
|
||||
<Html lang="en">
|
||||
<Head>
|
||||
<meta charSet="utf-8" />
|
||||
<link rel="preload" href="/hohoho.mp3" as="audio" type="audio/mpeg" />
|
||||
</Head>
|
||||
<body>
|
||||
|
||||
@@ -6,8 +6,9 @@ import type React from "react"
|
||||
import { NotificationProvider } from "@/lib/notification-context"
|
||||
import { Metadata, Viewport } from "next"
|
||||
import KeepOnlineWrapper from "@/components/layout/KeepOnlineWrapper"
|
||||
import { ChristmasDecorations } from "@/components/christmas-decorations"
|
||||
import { isDecember } from "@/lib/utils/christmas"
|
||||
// Christmas theme disabled
|
||||
// import { ChristmasDecorations } from "@/components/christmas-decorations"
|
||||
// import { isDecember } from "@/lib/utils/christmas"
|
||||
import { AudioPreloader } from "@/components/audio-preloader"
|
||||
|
||||
const inter = Inter({ subsets: ["latin"] })
|
||||
@@ -72,15 +73,15 @@ export default function RootLayout({
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
const isDec = isDecember()
|
||||
const isDec = false // Christmas theme disabled
|
||||
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning className={isDec ? "christmas-theme" : ""}>
|
||||
<html lang="en" suppressHydrationWarning className="dark">
|
||||
<body className={inter.className}>
|
||||
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem disableTransitionOnChange>
|
||||
<AudioPreloader />
|
||||
<NotificationProvider>
|
||||
{isDec && <ChristmasDecorations />}
|
||||
{/* Christmas decorations disabled */}
|
||||
<Toaster
|
||||
theme="dark"
|
||||
richColors
|
||||
|
||||
Reference in New Issue
Block a user