Skip to content

Commit

Permalink
Merge branch 'main' into Bugfix/inntektsmelding-gruppe_vises_med_anta…
Browse files Browse the repository at this point in the history
…ll_0
  • Loading branch information
ebelegu authored Nov 8, 2024
2 parents 45d13d1 + f71e071 commit dc3d629
Show file tree
Hide file tree
Showing 16 changed files with 245 additions and 157 deletions.
169 changes: 90 additions & 79 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"homepage": "/min-side-arbeidsgiver",
"type": "module",
"dependencies": {
"@amplitude/analytics-browser": "2.11.8",
"@faker-js/faker": "8.4.1",
"@grafana/faro-web-sdk": "1.3.6",
"@navikt/aksel-icons": "^5.17.2",
"@navikt/arbeidsgiver-notifikasjon-widget": "7.1.2",
"@navikt/arbeidsgiver-notifikasjon-widget": "7.1.4",
"@navikt/bedriftsmeny": "7.0.3",
"@navikt/ds-css": "^6.15.0",
"@navikt/ds-icons": "3.4.3",
"@navikt/ds-react": "^6.15.0",
"@navikt/nav-dekoratoren-moduler": "2.1.6",
"amplitude-js": "^7.4.1",
"fuzzysort": "^1.1.4",
"immutable": "^4.3.6",
"msw": "2.3.1",
Expand All @@ -31,7 +31,6 @@
"@graphql-codegen/typescript-react-apollo": "^4.3.0",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^16.0.0",
"@types/amplitude-js": "^8.16.5",
"@types/jest-axe": "^3.5.9",
"@types/node": "^20.14.9",
"@types/react": "18.3.3",
Expand Down
3 changes: 1 addition & 2 deletions src/GeneriskeElementer/LenkeMedLogging.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ import {BodyShort, Link as DsLink, LinkProps } from '@navikt/ds-react';
import {loggNavigasjon} from '../utils/funksjonerForAmplitudeLogging';
import { useLocation, Link as ReactLink } from 'react-router-dom';

interface Props {
interface Props extends LinkProps {
href: string;
loggLenketekst: string;
onClick?: LinkProps["onClick"];
children: ReactNode;
}

Expand Down
12 changes: 6 additions & 6 deletions src/Pages/Hovedside/AktueltRubrikk.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ const Aktuelt = ({ lenke, tittel, visFra, visTil }: AktueltProps) => {

const aktuelt: Array<AktueltProps> = [
{
lenke: 'https://www.nav.no/arbeidsgiver/feriepenger',
tittel: 'Refusjon av feriepenger opptjent i fjor kommer i oppgjørsrapport K27 i starten av juni',
visFra: new Date('2024-05-23T00:00:00+02:00'),
visTil: new Date('2024-06-06T00:00:00+02:00'),
tilgangssjekk: (valgtOrganisasjon) => valgtOrganisasjon.altinntilgang.inntektsmelding,
},
lenke: 'https://www.nav.no/arbeidsgiver/nye-inntektsmeldinger',
tittel: 'Ny løsning for inntektsmelding for foreldre- og svangerskapspenger kommer snart',
visFra: new Date('2024-11-05T00:00:00+02:00'),
visTil: new Date('2024-12-31T00:00:00+02:00'),
tilgangssjekk: (_) => true
}
];

export const AktueltRubrikk = () => {
Expand Down
15 changes: 5 additions & 10 deletions src/Pages/Hovedside/InfoBokser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,14 @@ type InfoboksProps = {
const infobokser: Array<InfoboksProps> = [
{
id: 'uxsignals',
visFra: new Date('2024-10-04T00:00:00+02:00'),
visTil: new Date('2024-11-04T10:00:00+02:00'),
visFra: new Date('2024-11-06T00:00:00+02:00'),
visTil: new Date('2024-12-31T10:00:00+02:00'),
Component: () => {
const { organisasjoner } = useContext(OrganisasjonerOgTilgangerContext);
const harForebyggeFravarTilgang = Record.values(organisasjoner).some(
(org) => org.altinntilgang.forebyggefravar
);

if (harForebyggeFravarTilgang) {
return <UXSignals dataUxsignalsEmbed="panel-7t3dixiw4u" />;
} else {
const { valgtOrganisasjon } = useContext(OrganisasjonsDetaljerContext);
if (!valgtOrganisasjon || !valgtOrganisasjon.altinntilgang.inntektsmelding) {
return null;
}
return <UXSignals dataUxsignalsEmbed="panel-mwwvs1lq0" />;
},
},
{
Expand Down
10 changes: 10 additions & 0 deletions src/Pages/OmVirksomheten/Kontaktinfo.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
.kontaktinfo{
background: var(--a-gray-100);
padding: 16px;
border-radius: 8px;
gap: 8px;
display: grid;
flex-grow: 1;
}

.kontaktinfo li {
padding: 8px 8px 0 0;
margin: 0;
list-style: none;
}
Expand Down
Loading

0 comments on commit dc3d629

Please sign in to comment.