mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
404
This commit is contained in:
parent
7f5dec216d
commit
2071bd07ae
@ -1,3 +1,3 @@
|
||||
import Page from "@ente/shared/next/pages/404";
|
||||
import Page from "@/base/components/pages/404";
|
||||
|
||||
export default Page;
|
||||
|
@ -1,3 +1,3 @@
|
||||
import Page from "@ente/shared/next/pages/404";
|
||||
import Page from "@/base/components/pages/404";
|
||||
|
||||
export default Page;
|
||||
|
@ -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 <></>;
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user