Updated Dependencies (#104)
This commit is contained in:
committed by
GitHub
parent
10898231fe
commit
8f3c1b2aeb
@@ -10,7 +10,7 @@ type Theme = 'light' | 'dark' | 'system';
|
||||
export async function getRootTheme() {
|
||||
const cookiesStore = await cookies();
|
||||
|
||||
const themeCookie = cookiesStore.get('theme')?.value as Theme
|
||||
const themeCookie = cookiesStore.get('theme')?.value as Theme;
|
||||
|
||||
return themeCookie ?? process.env.NEXT_PUBLIC_DEFAULT_THEME_MODE ?? 'light';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user