mobile issues in header

This commit is contained in:
2024-08-13 12:02:46 +01:00
parent 88fa4d90f0
commit 88ab1f3fc5
12 changed files with 83 additions and 23 deletions
+12
View File
@@ -1,6 +1,8 @@
import useTranslation from "next-translate/useTranslation";
import router from "next/router";
import Link from "next/link";
import { destroyCookie } from "nookies";
import { signOut } from "next-auth/react";
const ServiceBanner = (props) => {
props = props.props;
@@ -16,6 +18,16 @@ const ServiceBanner = (props) => {
);
};
const handleLogout = () => {
console.info("////////////\n" + "logout" + "\n////////////");
window.localStorage.clear(),
destroyCookie(null, "next-auth.csrf-token"),
destroyCookie(null, "next-auth.callback-url"),
destroyCookie(null, "pedw_locale"),
destroyCookie(null, "pinsUser"),
signOut({ callbackUrl: "/logout" });
};
const portalLogoLink = [
"/myportal/[appealtypes]",
"/newappeal",