From 9f43c6ba9967f0af67871d2e4826b37ca0e11f51 Mon Sep 17 00:00:00 2001 From: mbaharip <62494292+mbahArip@users.noreply.github.com> Date: Fri, 24 Jan 2025 17:45:17 +0700 Subject: [PATCH] update: Move not found to component --- src/app/not-found.tsx | 36 +++--------------------------- src/components/Layout/NotFound.tsx | 34 ++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 33 deletions(-) create mode 100644 src/components/Layout/NotFound.tsx diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index bb1dfa5..c63c685 100644 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -1,35 +1,5 @@ -"use client"; +import { NotFoundComponent } from "~/components/layout"; -import { Status } from "~/components/global"; -import { Button } from "~/components/ui/button"; - -import useRouter from "~/hooks/usePRouter"; - -export default function NotFoundPage() { - const router = useRouter(); - - return ( -
- - -
- - -
-
- ); +export default function NotFound() { + return ; } diff --git a/src/components/Layout/NotFound.tsx b/src/components/Layout/NotFound.tsx new file mode 100644 index 0000000..af2d669 --- /dev/null +++ b/src/components/Layout/NotFound.tsx @@ -0,0 +1,34 @@ +"use client"; + +import { Status } from "~/components/global"; +import { Button } from "~/components/ui/button"; + +import useRouter from "~/hooks/usePRouter"; + +export default function NotFoundClient() { + const router = useRouter(); + return ( +
+ + +
+ + +
+
+ ); +}