remove unused imports
This commit is contained in:
+28
-49
@@ -1,14 +1,13 @@
|
||||
import Link from "next/link";
|
||||
import Image from "next/image";
|
||||
import { useRouter } from "next/router";
|
||||
import useTranslation from "next-translate/useTranslation";
|
||||
import Banner from "../components/banner";
|
||||
import { useDispatch, useSelector, shallowEqual, connect } from "react-redux";
|
||||
import { setLogout } from "../store/accountDetails/action";
|
||||
import _ from "lodash";
|
||||
import { parseCookies, setCookie, destroyCookie } from "nookies";
|
||||
import useTranslation from "next-translate/useTranslation";
|
||||
import Link from "next/link";
|
||||
import { useRouter } from "next/router";
|
||||
import { destroyCookie, setCookie } from "nookies";
|
||||
import { connect } from "react-redux";
|
||||
import Banner from "../components/banner";
|
||||
import { setLogout } from "../store/accountDetails/action";
|
||||
|
||||
import { useSession, signIn, signOut } from "next-auth/react";
|
||||
import { signOut } from "next-auth/react";
|
||||
|
||||
const Header = (props) => {
|
||||
let { t, lang } = useTranslation();
|
||||
@@ -91,23 +90,8 @@ const Header = (props) => {
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
{/* <div className="govuk-header__content govuk-!-width-one-half govuk-!-margin-top-3">
|
||||
<Link
|
||||
href={router.locale == "cy" ? "/allgofnodi" : "/logout"}
|
||||
>
|
||||
<a
|
||||
onClick={() => {
|
||||
window.localStorage.clear();
|
||||
}}
|
||||
className="govuk-header__link
|
||||
govuk-header__link--service-name"
|
||||
>
|
||||
{serviceName || t("common:service-name")}
|
||||
</a>
|
||||
</Link>
|
||||
</div> */}
|
||||
<div className="languageSwitch">
|
||||
{/* <div className="mobileNav">
|
||||
<div className="mobileNav">
|
||||
<div className="mobileMenu">
|
||||
<input
|
||||
type="radio"
|
||||
@@ -183,36 +167,31 @@ const Header = (props) => {
|
||||
locale={
|
||||
locale == "en" ? "cy" : "en"
|
||||
}
|
||||
className="govuk-header__link "
|
||||
lang={locale == "en" ? "cy" : "en"}
|
||||
hrefLang={
|
||||
locale == "en" ? "cy" : "en"
|
||||
}
|
||||
data-journey-click={
|
||||
locale == "en"
|
||||
? "link - click:lang-select:Cymraeg"
|
||||
: "link - click:lang-select:English"
|
||||
}
|
||||
aria-label={
|
||||
locale == "en"
|
||||
? "Dewiswch Cymraeg"
|
||||
: "Select English"
|
||||
}
|
||||
>
|
||||
<a
|
||||
className="govuk-header__link "
|
||||
lang={
|
||||
locale == "en" ? "cy" : "en"
|
||||
}
|
||||
hrefLang={
|
||||
locale == "en" ? "cy" : "en"
|
||||
}
|
||||
data-journey-click={
|
||||
locale == "en"
|
||||
? "link - click:lang-select:Cymraeg"
|
||||
: "link - click:lang-select:English"
|
||||
}
|
||||
aria-label={
|
||||
locale == "en"
|
||||
? "Dewiswch Cymraeg"
|
||||
: "Select English"
|
||||
}
|
||||
>
|
||||
{" "}
|
||||
{t("common:available-in")}
|
||||
</a>
|
||||
{" "}
|
||||
{t("common:available-in")}
|
||||
</Link>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div> */}
|
||||
<div className="fullNavs">
|
||||
</div>
|
||||
<div className="fullNav">
|
||||
{hasContactLink.includes(router.pathname) == true ? (
|
||||
<Link
|
||||
href="/dns/contact-us"
|
||||
|
||||
Reference in New Issue
Block a user