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 = () => ( } /> - } /> + + + + + } + />