Skip to content

Commit

Permalink
add settins provider
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzahadlx committed Nov 7, 2024
1 parent cf7a0e4 commit d6b50d3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { AppSidebar } from "@/components/sidebar"
import { cn } from '@/lib/utils';
import { JetBrains_Mono } from "next/font/google";
import { Courier_Prime } from 'next/font/google'
import { SettingsProvider } from '@/lib/settings';
import { SettingsProvider } from './providers/settings-provider'

const inter = Inter({ subsets: ['latin'] });
const jetbrainsMono = JetBrains_Mono({
Expand Down Expand Up @@ -42,7 +42,7 @@ export default function RootLayout({
jetbrainsMono.variable
)}>
<ThemeProvider
attribute="data-theme"
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
Expand Down
11 changes: 11 additions & 0 deletions app/providers/settings-provider.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { ReactNode } from 'react'

interface SettingsProviderProps {
children: ReactNode
}

export function SettingsProvider({ children }: SettingsProviderProps) {
// Your settings context logic here...

return <>{children}</> // Make sure to return the children
}

0 comments on commit d6b50d3

Please sign in to comment.