refactor: move 404 page to RSC
This commit is contained in:
parent
f38b66c6e8
commit
5be75ad98b
1 changed files with 7 additions and 7 deletions
|
@ -1,8 +1,10 @@
|
|||
import { useRouter } from 'next/router';
|
||||
import React from 'react';
|
||||
import { StatusScreen } from '../client/components/StatusScreen';
|
||||
'use client';
|
||||
|
||||
const ErrorPage: React.FC = () => {
|
||||
import React from 'react';
|
||||
import { StatusScreen } from '@/components/StatusScreen';
|
||||
import { useRouter } from 'next/navigation';
|
||||
|
||||
export default function NotFound() {
|
||||
const router = useRouter();
|
||||
|
||||
const handleHome = () => {
|
||||
|
@ -10,6 +12,4 @@ const ErrorPage: React.FC = () => {
|
|||
};
|
||||
|
||||
return <StatusScreen loading={false} title="404" subtitle="Page not found" actionTitle="Home page" onAction={handleHome} />;
|
||||
};
|
||||
|
||||
export default ErrorPage;
|
||||
}
|
Loading…
Reference in a new issue