This commit is contained in:
Manav Rathi 2024-07-18 19:06:37 +05:30
parent 7f5dec216d
commit 2071bd07ae
No known key found for this signature in database
3 changed files with 8 additions and 6 deletions

View File

@ -1,3 +1,3 @@
import Page from "@ente/shared/next/pages/404";
import Page from "@/base/components/pages/404";
export default Page;

View File

@ -1,3 +1,3 @@
import Page from "@ente/shared/next/pages/404";
import Page from "@/base/components/pages/404";
export default Page;

View File

@ -1,7 +1,9 @@
import { PAGES } from "@/accounts/constants/pages";
import { useRouter } from "next/router";
import { useEffect } from "react";
import React, { useEffect } from "react";
/**
* A reusable 404 page.
*/
const Page: React.FC = () => {
// [Note: 404 back to home]
//
@ -21,8 +23,8 @@ const Page: React.FC = () => {
const router = useRouter();
useEffect(() => {
router.push(PAGES.ROOT);
}, []);
void router.push("/");
}, [router]);
return <></>;
};