From 0a4a2d0330d8a074beec5563b3eec58051bcadb7 Mon Sep 17 00:00:00 2001
From: ebelegu <89395215+ebelegu@users.noreply.github.com>
Date: Thu, 28 Nov 2024 14:05:21 +0100
Subject: [PATCH] =?UTF-8?q?Ny=20br=C3=B8dsmulesti?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/Pages/Artikkel/Artikkel.tsx | 10 +---
src/Pages/Banner.css | 13 +++++
src/Pages/Banner.tsx | 65 ++++++---------------
src/Pages/Hovedside/Hovedside.tsx | 1 -
src/Pages/OmVirksomheten/OmVirksomheten.tsx | 6 --
src/Pages/Pages.tsx | 36 ++++--------
6 files changed, 43 insertions(+), 88 deletions(-)
diff --git a/src/Pages/Artikkel/Artikkel.tsx b/src/Pages/Artikkel/Artikkel.tsx
index d3b2210bb..b70fed133 100644
--- a/src/Pages/Artikkel/Artikkel.tsx
+++ b/src/Pages/Artikkel/Artikkel.tsx
@@ -127,15 +127,7 @@ export const Artikkel = () => {
return (
<>
-
+
= ({
sidetittel = 'Min side – arbeidsgiver',
}) => {
- useEffect(() => {
- setBreadcrumbs([
- {
- url: 'https://arbeidsgiver.nav.no/min-side-arbeidsgiver',
- title: 'Min side – arbeidsgiver',
- },
- ]).then(() => {});
- }, []);
- return (
-
- );
+ return
;
};
export const SaksoversiktBanner = () => (
@@ -77,44 +66,24 @@ export const BannerMedBedriftsmeny: FunctionComponent
= ({ sidetittel
: [];
return (
-
+
);
};
-interface Brodsmule {
- url: string;
- title: string;
- handleInApp: boolean;
-}
-
-interface BrodsmuleProps {
- brodsmuler: Brodsmule[];
-}
-
-export const Brodsmulesti = ({ brodsmuler }: BrodsmuleProps) => {
- const navigate = useNavigate();
-
- onBreadcrumbClick((breadcrumb) => {
- navigate(breadcrumb.url);
- });
-
- const defaultBrodsmule: Brodsmule[] = [
- { url: '/', title: 'Min side – arbeidsgiver', handleInApp: true },
- ];
-
- const breadcrumbs = defaultBrodsmule.concat(brodsmuler);
-
- useEffect(() => {
- setBreadcrumbs(breadcrumbs);
- }, [JSON.stringify(brodsmuler)]);
-
- return <>>;
+export const Brodsmulesti = () => {
+ return (
+
+
+
+ Min side – arbeidsgiver
+
+
+ );
};
export const Spinner = () => (
diff --git a/src/Pages/Hovedside/Hovedside.tsx b/src/Pages/Hovedside/Hovedside.tsx
index 7a51f73f0..c9525858c 100644
--- a/src/Pages/Hovedside/Hovedside.tsx
+++ b/src/Pages/Hovedside/Hovedside.tsx
@@ -23,7 +23,6 @@ const Hovedside: FunctionComponent = () => {
return (
-
diff --git a/src/Pages/OmVirksomheten/OmVirksomheten.tsx b/src/Pages/OmVirksomheten/OmVirksomheten.tsx
index 07da4aef0..52ba4904e 100644
--- a/src/Pages/OmVirksomheten/OmVirksomheten.tsx
+++ b/src/Pages/OmVirksomheten/OmVirksomheten.tsx
@@ -5,7 +5,6 @@ import Underenhet from './Underenhet';
import OverordnetEnhet from './OverordnetEnhet';
import './OmVirksomheten.css';
import { Box } from '@navikt/ds-react';
-import { Brodsmulesti } from '../Banner';
const Kontaktpanel = ({ children }: { children: React.ReactNode }) => (
{children}
@@ -21,11 +20,6 @@ const OmVirksomheten: FunctionComponent = () => {
return (
<>
-
{overordnetenhet !== undefined && underenhet !== undefined ? (
<>
diff --git a/src/Pages/Pages.tsx b/src/Pages/Pages.tsx
index d670235a8..45b615bcb 100644
--- a/src/Pages/Pages.tsx
+++ b/src/Pages/Pages.tsx
@@ -63,6 +63,7 @@ const Pages: FunctionComponent = () => (
path="/bedriftsinformasjon"
element={
<>
+
@@ -85,16 +86,8 @@ const Pages: FunctionComponent = () => (
path="/saksoversikt"
element={
<>
+
-
>
}
@@ -104,20 +97,7 @@ const Pages: FunctionComponent = () => (
element={
<>
-
+
>
}
@@ -128,7 +108,15 @@ const Pages: FunctionComponent = () => (
}
/>
- } />
+
+
+
+ >
+ }
+ />