Skip to content

Commit c9698f2

Browse files
chore(deps): upgrade next-themes and the other dependencies (#27)
1 parent b969b63 commit c9698f2

File tree

5 files changed

+722
-711
lines changed

5 files changed

+722
-711
lines changed

app/(main)/[code]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export async function generateMetadata(
4848
const parentNames = Object.keys(areaData.parent ?? {}).map((parent) =>
4949
parent === 'regency'
5050
? ucWords(areaData.parent?.[parent]?.name ?? '')
51-
: areaData.parent?.[parent]?.name ?? '',
51+
: (areaData.parent?.[parent]?.name ?? ''),
5252
)
5353

5454
const areaNames = [

app/layout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { ThemeProvider } from '@/components/theme-provider'
21
import { config } from '@/lib/config'
32
import { cn } from '@/lib/utils'
43
import { Inter } from 'next/font/google'
54
import { StrictMode } from 'react'
65
import './globals.css'
76
import { Toaster } from '@/components/ui/sonner'
87
import { Metadata } from 'next'
8+
import { ThemeProvider } from 'next-themes'
99

1010
const inter = Inter({
1111
subsets: ['latin'],
@@ -54,6 +54,7 @@ export default function RootLayout({
5454
inter.variable,
5555
)}
5656
>
57+
{/* @ts-ignore error type return on build. Revert this when https://github.com/pacocoursey/next-themes/issues/279 issue has been fixed */}
5758
<ThemeProvider
5859
attribute="class"
5960
defaultTheme="system"

components/theme-provider.tsx

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)