Skip to content

Commit

Permalink
🔒 Fjernet kommentarfelt på aksel
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh committed Jul 5, 2023
1 parent 06ceeb3 commit 8baa1ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
7 changes: 4 additions & 3 deletions aksel.nav.no/website/components/layout/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FigmaIcon, GithubIcon, SlackIcon } from "components/assets";
import Logo from "components/assets/Logo";
import { logNav } from "components/website-modules/utils/amplitude";
import dynamic from "next/dynamic";
import FooterForm from "./FooterForm";
/* import FooterForm from "./FooterForm"; */

export const EditButton = dynamic(
() => import("components/website-modules/EditButton"),
Expand All @@ -12,6 +12,7 @@ export const EditButton = dynamic(
}
);

/* FooterForm is disabled to better comply with policy */
const Footer = () => {
return (
<footer
Expand All @@ -20,12 +21,12 @@ const Footer = () => {
data-theme="dark"
className="toc-ignore text-text-on-inverted bg-deepblue-800 relative flex w-full justify-center"
>
<div className="relative z-10 mx-auto grid w-full max-w-screen-2xl gap-12 px-4 pb-16 pt-12 md:grid-cols-2 md:px-6 lg:grid-cols-4 xl:grid-cols-5 xl:gap-6">
<div className="relative z-10 mx-auto grid w-full max-w-screen-2xl gap-12 px-4 pb-16 pt-12 md:grid-cols-2 md:px-6 lg:grid-cols-4 xl:grid-cols-4 xl:gap-6">
<LogoBlock />
<Snarveier />
<SideLenker />
<Kontakt />
<FooterForm />
{/* <FooterForm /> */}
</div>
<EditButton />
</footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,6 @@ const Feedback = ({
[asPath, activeState, hasLoggedFeedback]
);

useEffect(() => {
const callLogFeedback = () => logFeedback(false);

window.addEventListener("beforeunload", callLogFeedback);
return () => {
window.removeEventListener("beforeunload", callLogFeedback);
};
}, [logFeedback]);

const handleSend = (e) => {
e.preventDefault();

Expand Down Expand Up @@ -155,6 +146,9 @@ const Feedback = ({
"mx-auto": center,
});

/* Hidden to better comply with policy */
return null;

return (
<div className={classes} id="feedback-block" data-hj-suppress>
<div
Expand Down

0 comments on commit 8baa1ab

Please sign in to comment.