Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ipapandinas committed Sep 28, 2024
1 parent fb78a71 commit 4b401b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
8 changes: 1 addition & 7 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,7 @@ export default function RootLayout({
>
<head />
<body className="min-h-screen bg-background font-sans antialiased">
<Providers
themeProps={{
attribute: "class",
defaultTheme: "kudos",
children: null,
}}
>
<Providers>
<div className="bg-[radial-gradient(ellipse_at_center,_var(--tw-gradient-stops))] from-default from-0% to-background to-50% relative flex flex-col">
<header>
<TopBar />
Expand Down
7 changes: 4 additions & 3 deletions app/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@ import { queryClient } from "@/lib/react-query-client";

export interface ProvidersProps {
children: React.ReactNode;
themeProps?: ThemeProviderProps;
}

export function Providers({ children, themeProps }: ProvidersProps) {
export function Providers({ children }: ProvidersProps) {
const router = useRouter();

return (
<QueryClientProvider client={queryClient}>
<NextUIProvider navigate={router.push}>
<NextThemesProvider {...themeProps}>{children}</NextThemesProvider>
<NextThemesProvider attribute="class" defaultTheme="kudos">
{children}
</NextThemesProvider>
</NextUIProvider>
<ReactQueryDevtools initialIsOpen={false} />
</QueryClientProvider>
Expand Down

0 comments on commit 4b401b9

Please sign in to comment.