Skip to content

Commit 6c679f3

Browse files
committed
Fix mismatched react version, missing 404 page
1 parent 15ebb55 commit 6c679f3

File tree

5 files changed

+61
-17
lines changed

5 files changed

+61
-17
lines changed

bun.lock

Lines changed: 15 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

freebuff/web/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@
2626
"next-auth": "^4.24.11",
2727
"next-themes": "^0.3.0",
2828
"pino": "^9.6.0",
29-
"react": "18.3.1",
30-
"react-dom": "18.3.1",
29+
"react": "^19.0.0",
30+
"react-dom": "^19.0.0",
3131
"tailwind-merge": "^2.5.2",
3232
"zod": "^4.2.1"
3333
},
3434
"devDependencies": {
3535
"@tailwindcss/typography": "^0.5.15",
3636
"@types/node": "^22.14.0",
37-
"@types/react": "18.3.26",
38-
"@types/react-dom": "18.3.7",
37+
"@types/react": "^19.0.0",
38+
"@types/react-dom": "^19.0.0",
3939
"autoprefixer": "^10.4.21",
4040
"postcss": "^8",
4141
"tailwindcss": "^3.4.11",
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
'use client'
2+
3+
export default function GlobalError({
4+
reset,
5+
}: {
6+
error: Error & { digest?: string }
7+
reset: () => void
8+
}) {
9+
return (
10+
<html lang="en">
11+
<body className="bg-black text-white">
12+
<div className="flex flex-col items-center justify-center min-h-screen text-center px-4">
13+
<h1 className="text-6xl font-bold mb-4">500</h1>
14+
<p className="text-xl text-zinc-400 mb-8">Something went wrong</p>
15+
<button
16+
onClick={() => reset()}
17+
className="px-6 py-3 bg-white text-black rounded-lg hover:bg-zinc-200 transition-colors"
18+
>
19+
Try again
20+
</button>
21+
</div>
22+
</body>
23+
</html>
24+
)
25+
}

freebuff/web/src/app/not-found.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import Link from 'next/link'
2+
3+
export default function NotFound() {
4+
return (
5+
<div className="flex flex-col items-center justify-center min-h-[60vh] text-center px-4">
6+
<h1 className="text-6xl font-bold mb-4">404</h1>
7+
<p className="text-xl text-zinc-400 mb-8">Page not found</p>
8+
<Link
9+
href="/"
10+
className="px-6 py-3 bg-white text-black rounded-lg hover:bg-zinc-200 transition-colors"
11+
>
12+
Go home
13+
</Link>
14+
</div>
15+
)
16+
}

freebuff/web/src/components/theme-provider.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use client'
22

3-
import { ThemeProvider as NextThemesProvider } from 'next-themes'
4-
import { type ThemeProviderProps } from 'next-themes/dist/types'
3+
import { ThemeProvider as NextThemesProvider, type ThemeProviderProps } from 'next-themes'
54
import { useEffect } from 'react'
65

76
export const ThemeProvider = ({ children, ...props }: ThemeProviderProps) => {

0 commit comments

Comments
 (0)