File tree 3 files changed +25
-2
lines changed
3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change
1
+ import { Button } from "@/shadcn/ui/button" ;
2
+ import { Helmet } from "react-helmet-async" ;
3
+ import { useTranslation } from "react-i18next" ;
4
+ import { Link } from "react-router-dom" ;
5
+
6
+ export default function NotFound ( ) {
7
+ const { t } = useTranslation ( ) ;
8
+
9
+ return (
10
+ < >
11
+ < Helmet >
12
+ < title > { t ( "views.notFound.title" ) } - Holodex</ title >
13
+ </ Helmet >
14
+ < div className = "text-center" >
15
+ < h1 className = "my-10 text-xl font-bold" > { t ( "views.notFound.title" ) } </ h1 >
16
+ < Button asChild variant = "secondary" >
17
+ < Link to = "/" > { t ( "views.notFound.back" ) } </ Link >
18
+ </ Button >
19
+ </ div >
20
+ </ >
21
+ ) ;
22
+ }
Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ views:
298
298
dateuploadedLatestFirst : Upload date, latest first
299
299
dateuploadedEarliestFirst : Upload date, earliest first
300
300
notFound :
301
- title : Content not found
301
+ title : Content Not Found
302
302
back : Return Home
303
303
search :
304
304
sort :
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ const Watch = lazy(() =>
101
101
const ResetClientPage = lazy ( ( ) =>
102
102
import ( "./debug" ) . then ( ( module ) => ( { default : module . ResetClientPage } ) ) ,
103
103
) ;
104
+ const NotFound = lazy ( ( ) => import ( "@/components/common/NotFound" ) ) ;
104
105
const Playlist = lazy ( ( ) => import ( "./playlist" ) ) ;
105
106
const Multiview = lazy ( ( ) =>
106
107
import ( "./multiview/multiview" ) . then ( ( module ) => ( {
@@ -174,6 +175,6 @@ export const routes = (
174
175
< Route path = "watch/:id" Component = { Watch } />
175
176
< Route path = "debug" Component = { ResetClientPage } />
176
177
< Route path = "debug/run" element = { < div > Debug Run</ div > } />
177
- < Route path = "*" element = { < div > Not found </ div > } />
178
+ < Route path = "*" Component = { NotFound } />
178
179
</ Route >
179
180
) ;
You can’t perform that action at this time.
0 commit comments