Skip to content

Commit

Permalink
feat(www): update next-themes
Browse files Browse the repository at this point in the history
  • Loading branch information
shadcn committed Nov 8, 2024
1 parent 9253682 commit c4c5d8d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
7 changes: 4 additions & 3 deletions apps/www/components/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import { ThemeProvider as NextThemesProvider } from "next-themes"

import { TooltipProvider } from "@/registry/new-york/ui/tooltip"

type ThemeProviderProps = React.ComponentProps<typeof NextThemesProvider>

export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
export function ThemeProvider({
children,
...props
}: React.ComponentProps<typeof NextThemesProvider>) {
return (
<JotaiProvider>
<NextThemesProvider {...props}>
Expand Down
7 changes: 4 additions & 3 deletions apps/www/content/docs/dark-mode/next.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ npm install next-themes
import * as React from "react"
import { ThemeProvider as NextThemesProvider } from "next-themes"

type ThemeProviderProps = React.ComponentProps<typeof NextThemesProvider>

export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
export function ThemeProvider({
children,
...props
}: React.ComponentProps<typeof NextThemesProvider>) {
return <NextThemesProvider {...props}>{children}</NextThemesProvider>
}
```
Expand Down
2 changes: 1 addition & 1 deletion apps/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"markdown-wasm": "^1.2.0",
"next": "14.3.0-canary.43",
"next-contentlayer2": "^0.4.6",
"next-themes": "^0.2.1",
"next-themes": "^0.4.3",
"react": "^18.2.0",
"react-day-picker": "^8.7.1",
"react-dom": "^18.2.0",
Expand Down
16 changes: 7 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c4c5d8d

Please sign in to comment.