Skip to content

Commit 80b9e52

Browse files
committed
chore: forgot providers
1 parent f2ade22 commit 80b9e52

File tree

2 files changed

+42
-24
lines changed

2 files changed

+42
-24
lines changed

apps/site/app/global-error.tsx

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,35 @@
11
'use client';
22

3+
import { NextIntlClientProvider } from 'next-intl';
34
import type { FC } from 'react';
45

56
import Button from '#site/components/Common/Button';
67
import BaseLayout from '#site/layouts/Base';
78
import GlowingBackdropLayout from '#site/layouts/GlowingBackdrop';
9+
import { ThemeProvider } from '#site/providers/themeProvider';
810

911
const GlobalErrorPage: FC<{ error: Error }> = () => (
1012
<html>
1113
<body>
12-
<BaseLayout>
13-
<GlowingBackdropLayout>
14-
<span>500</span>
14+
<NextIntlClientProvider>
15+
<ThemeProvider>
16+
<BaseLayout>
17+
<GlowingBackdropLayout>
18+
<span>500</span>
1519

16-
<h1 className="special -mt-4 text-center">Internal Server Error</h1>
20+
<h1 className="special -mt-4 text-center">
21+
Internal Server Error
22+
</h1>
1723

18-
<p className="-mt-4 max-w-sm text-center text-lg">
19-
This page has thrown a non-recoverable error.
20-
</p>
24+
<p className="-mt-4 max-w-sm text-center text-lg">
25+
This page has thrown a non-recoverable error.
26+
</p>
2127

22-
<Button href="/">Back to Home</Button>
23-
</GlowingBackdropLayout>
24-
</BaseLayout>
28+
<Button href="/">Back to Home</Button>
29+
</GlowingBackdropLayout>
30+
</BaseLayout>
31+
</ThemeProvider>
32+
</NextIntlClientProvider>
2533
</body>
2634
</html>
2735
);

apps/site/app/global-not-found.tsx

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,41 @@
1+
'use client';
2+
3+
import { NextIntlClientProvider } from 'next-intl';
14
import type { FC } from 'react';
25

36
import Button from '#site/components/Common/Button';
47
import Turtle from '#site/components/Common/Turtle';
58
import BaseLayout from '#site/layouts/Base';
69
import GlowingBackdropLayout from '#site/layouts/GlowingBackdrop';
10+
import { ThemeProvider } from '#site/providers/themeProvider';
711

812
const NotFoundPage: FC = () => (
913
<html>
1014
<body>
11-
<BaseLayout>
12-
<GlowingBackdropLayout kind="default">
13-
<span>404</span>
15+
<NextIntlClientProvider>
16+
<ThemeProvider>
17+
<BaseLayout>
18+
<GlowingBackdropLayout kind="default">
19+
<span>404</span>
1420

15-
<h1 className="special -mt-4 text-center">Page could not be found</h1>
21+
<h1 className="special -mt-4 text-center">
22+
Page could not be found
23+
</h1>
1624

17-
<div className="my-4 flex h-[150px] items-center justify-center md:h-[300px]">
18-
<Turtle />
19-
</div>
25+
<div className="my-4 flex h-[150px] items-center justify-center md:h-[300px]">
26+
<Turtle />
27+
</div>
2028

21-
<p className="-mt-4 max-w-sm text-center text-lg">
22-
Sorry, we couldn't find the page you're after! Try starting again
23-
from the homepage.
24-
</p>
29+
<p className="-mt-4 max-w-sm text-center text-lg">
30+
Sorry, we couldn't find the page you're after! Try starting
31+
again from the homepage.
32+
</p>
2533

26-
<Button href="/">Back to Home</Button>
27-
</GlowingBackdropLayout>
28-
</BaseLayout>
34+
<Button href="/">Back to Home</Button>
35+
</GlowingBackdropLayout>
36+
</BaseLayout>
37+
</ThemeProvider>
38+
</NextIntlClientProvider>
2939
</body>
3040
</html>
3141
);

0 commit comments

Comments
 (0)