Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Wiklem committed Oct 4, 2024
1 parent 8eedc7b commit 7996cda
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/felles/header/modiadekoratør/Modiadekoratør.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Alert } from '@navikt/ds-react';
import NAVSPA from '@navikt/navspa';
import loadjs from 'loadjs';
import { ComponentType, FunctionComponent, useEffect, useRef, useState } from 'react';
import styled from 'styled-components';
import { NavKontorMedNavn } from '../../ApplikasjonContext';
import { getMiljø, Miljø } from '../../miljø';
import { DecoratorProps } from './DekoratørProps';
Expand All @@ -20,9 +19,6 @@ type Props = {
onNavKontorChange: (navKontor: NavKontorMedNavn) => void;
};

const StyledHeader = styled.div`
@import url('https://cdn.nav.no/personoversikt/internarbeidsflate-decorator-v3/dev/latest/dist/index.css');
`;
const Modiadekoratør: FunctionComponent<Props> = ({ navKontor, onNavKontorChange }) => {
const microfrontend = useRef<ComponentType<DecoratorProps>>();

Expand Down Expand Up @@ -83,11 +79,7 @@ const Modiadekoratør: FunctionComponent<Props> = ({ navKontor, onNavKontorChang
(() => {
const MicrofrontendComponent =
microfrontend.current as React.ComponentType<any>;
return (
<StyledHeader>
<MicrofrontendComponent {...props} />
</StyledHeader>
);
return <MicrofrontendComponent {...props} />;
})()}

{status === Status.Feil && (
Expand Down

0 comments on commit 7996cda

Please sign in to comment.