2 Commits

Author SHA1 Message Date
sanjidarimi aa7ee3f19e fixed 2026-06-17 20:33:30 +06:00
sanjidarimi e1ed111c55 fix(not-found):remove unused useEffect that polutted client logs 2026-06-17 20:31:27 +06:00
+4 -9
View File
@@ -1,18 +1,13 @@
import { Link, useLocation } from "react-router-dom";
import { useEffect } from "react";
import { Link } from "react-router-dom";
const NotFound = () => {
const location = useLocation();
useEffect(() => {
console.error("404 Error: User attempted to access non-existent route:", location.pathname);
}, [location.pathname]);
return (
<div className="flex min-h-screen items-center justify-center bg-muted">
<div className="text-center">
<h1 className="mb-4 text-4xl font-bold">404</h1>
<p className="mb-4 text-xl text-muted-foreground">Oops! Page not found</p>
<p className="mb-4 text-xl text-muted-foreground">
Oops! Page not found.
</p>
<Link to="/" className="text-primary underline hover:text-primary/90">
Return to Home
</Link>