1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-22 06:34:22 +00:00

Make error pages display an ErrorMain

This commit is contained in:
Steffo 2022-07-21 18:19:04 +02:00
parent 5f5e32a212
commit 13d60aa4be
Signed by: steffo
GPG key ID: 6965406171929D01
2 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@ import { NextPage, NextPageContext } from "next";
import { useTranslation } from "next-i18next";
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
import { default as Link } from "next/link";
import { ErrorBlock } from "../components/generic/errors/renderers";
import { ErrorBlock, ErrorMain } from "../components/generic/errors/renderers";
import { ViewNotice } from "../components/generic/views/notice";
import { Postcard } from "../components/postcard/changer";
import errorPostcard from "../public/postcards/markus-spiske-iar-afB0QQw-unsplash-red.jpg"
@ -26,7 +26,7 @@ const Page404: NextPage = (props) => {
/>
<ViewNotice
notice={<>
<ErrorBlock
<ErrorMain
text={t("notFoundError")}
error={new Error("HTTP 404 (Not found)")}
/>

View file

@ -1,7 +1,7 @@
import { NextPage, NextPageContext } from "next";
import { useTranslation } from "next-i18next";
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
import { ErrorBlock } from "../components/generic/errors/renderers";
import { ErrorBlock, ErrorMain } from "../components/generic/errors/renderers";
import { ViewNotice } from "../components/generic/views/notice";
import { Postcard } from "../components/postcard/changer";
import errorPostcard from "../public/postcards/markus-spiske-iar-afB0QQw-unsplash-red.jpg"
@ -25,7 +25,7 @@ const Page500: NextPage = (props) => {
/>
<ViewNotice
notice={<>
<ErrorBlock
<ErrorMain
text={t("internalServerError")}
error={new Error("HTTP 500 (Internal server error)")}
/>