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 ( -