mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
This PR fixes a bug where a user might choose `classic-dark` as a theme in `studio` but then `docs` and `marketing` apps will look weird. To test: - Change the localStorage value of `theme` to `classic-dark` - Open `www` and `docs` apps, they should look ok <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a new "classic-dark" theme option for enhanced visual customization. * **Improvements** * Unified and simplified theme handling across apps for more consistent behavior. * Improved system-theme detection and smoother transitions when switching themes. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
26 lines
746 B
TypeScript
26 lines
746 B
TypeScript
'use client'
|
|
|
|
import { AuthProvider, ThemeProvider } from 'common'
|
|
import { Provider as JotaiProvider } from 'jotai'
|
|
import { PropsWithChildren } from 'react'
|
|
import { TooltipProvider } from 'ui'
|
|
|
|
import { FrameworkProvider } from '@/context/framework-context'
|
|
import { MobileMenuProvider } from '@/context/mobile-menu-context'
|
|
|
|
export function Providers({ children }: PropsWithChildren) {
|
|
return (
|
|
<AuthProvider>
|
|
<JotaiProvider>
|
|
<ThemeProvider>
|
|
<MobileMenuProvider>
|
|
<FrameworkProvider>
|
|
<TooltipProvider delayDuration={0}>{children}</TooltipProvider>
|
|
</FrameworkProvider>
|
|
</MobileMenuProvider>
|
|
</ThemeProvider>
|
|
</JotaiProvider>
|
|
</AuthProvider>
|
|
)
|
|
}
|