Merge pull request #354 from getmaxun/invalid-route
feat: handle invalid routes
This commit is contained in:
11
src/components/dashboard/NotFound.tsx
Normal file
11
src/components/dashboard/NotFound.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import React from 'react';
|
||||
|
||||
export function NotFoundPage() {
|
||||
return (
|
||||
<div style={{ textAlign: 'center' }}>
|
||||
<h1>404 - Page Not Found</h1>
|
||||
<p>Oops! This page does not exist.</p>
|
||||
<a href="/" style={{ textDecoration: 'none' }}>Take me to the homepage</a>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user