address shown on awaiting submissions
This commit is contained in:
+15
-3
@@ -4,6 +4,8 @@ import Link from "next/link";
|
||||
import CookieBanner from "../components/cookieBanner";
|
||||
import Footer from "../components/footer";
|
||||
import Header from "../components/header";
|
||||
import { parseCookies, setCookie, destroyCookie } from "nookies";
|
||||
import { useSession, signIn, signOut } from "next-auth/react";
|
||||
|
||||
function Error({ statusCode }, props) {
|
||||
let { t, lang } = useTranslation();
|
||||
@@ -29,9 +31,19 @@ function Error({ statusCode }, props) {
|
||||
? `An error ${statusCode} occurred on server`
|
||||
: t("common:error-page-message")}
|
||||
</p>
|
||||
<Link href="/">
|
||||
<a>Go back home</a>
|
||||
</Link>
|
||||
|
||||
<a
|
||||
onClick={() => {
|
||||
destroyCookie({}, "pinsUser"),
|
||||
window.localStorage.clear(),
|
||||
signOut({
|
||||
callbackUrl: "/",
|
||||
});
|
||||
}}
|
||||
>
|
||||
{" "}
|
||||
Go back home
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user