Update 404 references in BlogPost
cgen-0bf13c26f05f48149558c9a402fa9fd5
This commit is contained in:
parent
71f44d31af
commit
0c274f8f3a
1 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ import {
|
|||
} from "@/components/ui/card";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { User, Calendar } from "lucide-react";
|
||||
import NotFound from "./NotFound";
|
||||
import FourOhFourPage from "./404";
|
||||
|
||||
export default function BlogPost() {
|
||||
const { slug } = useParams<{ slug: string }>();
|
||||
|
|
@ -37,7 +37,7 @@ export default function BlogPost() {
|
|||
}, [slug]);
|
||||
|
||||
if (loading) return null;
|
||||
if (!post) return <NotFound />;
|
||||
if (!post) return <FourOhFourPage />;
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
|
|
|
|||
Loading…
Reference in a new issue