Skip to content

Commit

Permalink
fjern uxsignals fra å kunne lastes
Browse files Browse the repository at this point in the history
  • Loading branch information
kenglxn committed Dec 20, 2024
1 parent a79960b commit 340d4a5
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/Pages/Hovedside/InfoBokser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,6 @@ type InfoboksProps = {
};

const infobokser: Array<InfoboksProps> = [
{
id: 'uxsignals',
visFra: new Date('2024-11-06T00:00:00+02:00'),
visTil: new Date('2024-12-31T10:00:00+02:00'),
Component: () => {
const { valgtOrganisasjon } = useContext(OrganisasjonsDetaljerContext);
if (!valgtOrganisasjon || !valgtOrganisasjon.altinntilgang.inntektsmelding) {
return null;
}
return <UXSignals dataUxsignalsEmbed="panel-mwwvs1lq0" />;
},
},
{
id: 'ia-bookings',
visFra: new Date('2023-11-13T10:00:00+02:00'),
Expand Down Expand Up @@ -109,6 +97,9 @@ export const InfoBokser = () => {
);
};

/**
* fjernet bruk av denne inntil vi har kontroll på konsekvenser iht ny ekomlovgivning
*/
const UXSignals = ({ dataUxsignalsEmbed }: { dataUxsignalsEmbed: string }) => {
useEffect(() => {
const script = document.createElement('script');
Expand Down

0 comments on commit 340d4a5

Please sign in to comment.