mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-02-06 05:30:07 +00:00
fix: prettier config
This commit is contained in:
@@ -1,23 +1,21 @@
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Button } from "@/components/ui/button"
|
||||
import { useTranslation } from "react-i18next"
|
||||
import { useNavigate } from "react-router-dom"
|
||||
|
||||
interface ErrorPageProps {
|
||||
code?: string | number;
|
||||
message?: string;
|
||||
code?: string | number
|
||||
message?: string
|
||||
}
|
||||
|
||||
export default function ErrorPage({ code = "500", message }: ErrorPageProps) {
|
||||
const navigate = useNavigate();
|
||||
const { t } = useTranslation();
|
||||
const navigate = useNavigate()
|
||||
const { t } = useTranslation()
|
||||
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-center">
|
||||
<div className="flex flex-col items-center gap-2">
|
||||
<h1 className="text-4xl font-semibold">{code}</h1>
|
||||
<p className="text-xl text-muted-foreground">
|
||||
{message || t("error.somethingWentWrong")}
|
||||
</p>
|
||||
<p className="text-xl text-muted-foreground">{message || t("error.somethingWentWrong")}</p>
|
||||
<div className="flex gap-2">
|
||||
<Button onClick={() => window.location.reload()} variant="outline">
|
||||
{t("error.tryAgain")}
|
||||
@@ -28,5 +26,5 @@ export default function ErrorPage({ code = "500", message }: ErrorPageProps) {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user