minor fixes

This commit is contained in:
Ren Amamiya
2023-07-06 08:16:49 +07:00
parent c5ba98e37a
commit de6624ff78
4 changed files with 19 additions and 9 deletions

View File

@@ -1,7 +1,12 @@
import { useRouteError } from 'react-router-dom';
interface IRouteError {
statusText: string;
message: string;
}
export function ErrorScreen() {
const error: any = useRouteError();
const error = useRouteError() as IRouteError;
return (
<div className="flex h-full w-full items-center justify-center">