mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-22 14:44:21 +00:00
Make error pages display an ErrorMain
This commit is contained in:
parent
5f5e32a212
commit
13d60aa4be
2 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@ import { NextPage, NextPageContext } from "next";
|
||||||
import { useTranslation } from "next-i18next";
|
import { useTranslation } from "next-i18next";
|
||||||
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
|
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
|
||||||
import { default as Link } from "next/link";
|
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 { ViewNotice } from "../components/generic/views/notice";
|
||||||
import { Postcard } from "../components/postcard/changer";
|
import { Postcard } from "../components/postcard/changer";
|
||||||
import errorPostcard from "../public/postcards/markus-spiske-iar-afB0QQw-unsplash-red.jpg"
|
import errorPostcard from "../public/postcards/markus-spiske-iar-afB0QQw-unsplash-red.jpg"
|
||||||
|
@ -26,7 +26,7 @@ const Page404: NextPage = (props) => {
|
||||||
/>
|
/>
|
||||||
<ViewNotice
|
<ViewNotice
|
||||||
notice={<>
|
notice={<>
|
||||||
<ErrorBlock
|
<ErrorMain
|
||||||
text={t("notFoundError")}
|
text={t("notFoundError")}
|
||||||
error={new Error("HTTP 404 (Not found)")}
|
error={new Error("HTTP 404 (Not found)")}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { NextPage, NextPageContext } from "next";
|
import { NextPage, NextPageContext } from "next";
|
||||||
import { useTranslation } from "next-i18next";
|
import { useTranslation } from "next-i18next";
|
||||||
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
|
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 { ViewNotice } from "../components/generic/views/notice";
|
||||||
import { Postcard } from "../components/postcard/changer";
|
import { Postcard } from "../components/postcard/changer";
|
||||||
import errorPostcard from "../public/postcards/markus-spiske-iar-afB0QQw-unsplash-red.jpg"
|
import errorPostcard from "../public/postcards/markus-spiske-iar-afB0QQw-unsplash-red.jpg"
|
||||||
|
@ -25,7 +25,7 @@ const Page500: NextPage = (props) => {
|
||||||
/>
|
/>
|
||||||
<ViewNotice
|
<ViewNotice
|
||||||
notice={<>
|
notice={<>
|
||||||
<ErrorBlock
|
<ErrorMain
|
||||||
text={t("internalServerError")}
|
text={t("internalServerError")}
|
||||||
error={new Error("HTTP 500 (Internal server error)")}
|
error={new Error("HTTP 500 (Internal server error)")}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue