mirror of
https://github.com/Nezumi-2711/next-gdrive-index.git
synced 2026-09-22 13:38:38 +00:00
update: Move not found to component
This commit is contained in:
+3
-33
@@ -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 (
|
||||
<div className='mx-auto flex h-full w-full max-w-screen-md flex-grow flex-col items-center justify-center gap-12'>
|
||||
<Status
|
||||
icon='Frown'
|
||||
message="Can't find the file or folder you're looking for"
|
||||
/>
|
||||
|
||||
<div className='flex w-full items-center gap-2'>
|
||||
<Button
|
||||
className='grow'
|
||||
variant={"outline"}
|
||||
onClick={() => router.push("/")}
|
||||
>
|
||||
Home
|
||||
</Button>
|
||||
<Button
|
||||
className='grow'
|
||||
onClick={() => router.back()}
|
||||
>
|
||||
Previous Page
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
export default function NotFound() {
|
||||
return <NotFoundComponent />;
|
||||
}
|
||||
|
||||
@@ -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 (
|
||||
<div className='mx-auto flex h-full w-full max-w-screen-md flex-grow flex-col items-center justify-center gap-12'>
|
||||
<Status
|
||||
icon='Frown'
|
||||
message="Can't find the file or folder you're looking for"
|
||||
/>
|
||||
|
||||
<div className='flex w-full items-center gap-2'>
|
||||
<Button
|
||||
className='grow'
|
||||
variant={"outline"}
|
||||
onClick={() => router.push("/")}
|
||||
>
|
||||
Home
|
||||
</Button>
|
||||
<Button
|
||||
className='grow'
|
||||
onClick={() => router.back()}
|
||||
>
|
||||
Previous Page
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user