From 2cb1000a3a6440eb2ef011cfb22d9d61294a6ac3 Mon Sep 17 00:00:00 2001 From: iCrawl Date: Wed, 30 Nov 2022 04:34:47 +0100 Subject: [PATCH] fix: move back to old theming --- apps/website/src/app/layout.tsx | 33 ++++++++++++++++-------------- apps/website/src/app/providers.tsx | 20 ++++++++++++++++++ 2 files changed, 38 insertions(+), 15 deletions(-) create mode 100644 apps/website/src/app/providers.tsx diff --git a/apps/website/src/app/layout.tsx b/apps/website/src/app/layout.tsx index 1cfc15f9d..f49f750a9 100644 --- a/apps/website/src/app/layout.tsx +++ b/apps/website/src/app/layout.tsx @@ -1,5 +1,6 @@ -import { ServerThemeProvider } from 'next-themes'; +// import { ServerThemeProvider } from 'next-themes'; import type { PropsWithChildren } from 'react'; +import { Providers } from './providers'; import '@unocss/reset/tailwind.css'; import '../styles/inter.css'; @@ -9,19 +10,21 @@ import '../styles/main.css'; export default function RootLayout({ children }: PropsWithChildren) { return ( - - - - {children} - - + // + + + + {children} + + + // ); } diff --git a/apps/website/src/app/providers.tsx b/apps/website/src/app/providers.tsx new file mode 100644 index 000000000..c94a818c0 --- /dev/null +++ b/apps/website/src/app/providers.tsx @@ -0,0 +1,20 @@ +'use client'; + +import { ThemeProvider } from 'next-themes'; +import type { PropsWithChildren } from 'react'; + +export function Providers({ children }: PropsWithChildren) { + return ( + + {children} + + ); +}