Skip to content

Commit

Permalink
Remove dark theme hack
Browse files Browse the repository at this point in the history
  • Loading branch information
otenav committed Feb 12, 2024
1 parent 5f93019 commit d51e3a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
17 changes: 1 addition & 16 deletions src/packages/arbeidsplassen-react/Footer/Footer.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
import React, { useEffect } from "react";
import React from "react";
import { Link } from "@navikt/ds-react";
import ArbeidsplassenLogoSmall from "../Logo/ArbeidsplassenLogoSmall";

export default function Footer() {
useEffect(() => {
try {
if (!window.location.href.startsWith("https://arbeidsplassen.nav.no/")) {
const theme = localStorage.getItem("theme");
if (theme && theme === "dark") {
document.body.dataset.theme = "arbeidsplassen-dark";
} else {
document.body.dataset.theme = "arbeidsplassen";
}
}
} catch (err) {
//ignore
}
}, []);

return (
<footer className="arb-footer" lang="no">
<div className="container-large">
Expand Down
2 changes: 1 addition & 1 deletion src/packages/arbeidsplassen-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@navikt/arbeidsplassen-react",
"version": "8.2.9",
"version": "8.2.10",
"main": "dist/index.js",
"private": false,
"scripts": {
Expand Down

0 comments on commit d51e3a6

Please sign in to comment.