Skip to content

Commit

Permalink
Skru på inntektsmelding i prod igjen
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbb committed Jul 18, 2024
1 parent 181db0e commit 63a68bf
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 45 deletions.
28 changes: 12 additions & 16 deletions src/Pages/Hovedside/SøknaderOgSkjemaer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,22 +103,18 @@ export const SøknaderOgSkjemaer = () => {
)
: null}
{tilgangInntektsmelding === true
? gittMiljo({
prod: null,
other: (
<li>
<InternalLenkepanelMedLogging
loggLenketekst={
'Inntektsmelding sykepenger (Opprett manuelt)'
}
to={'/saksoversikt#opprett-inntektsmelding'}
>
Inntektsmelding sykepenger
</InternalLenkepanelMedLogging>
</li>
),
})
: null}
? <li>
<InternalLenkepanelMedLogging
loggLenketekst={
'Inntektsmelding sykepenger (Opprett manuelt)'
}
to={'/saksoversikt#opprett-inntektsmelding'}
>
Inntektsmelding sykepenger
</InternalLenkepanelMedLogging>
</li>
: null
}
{altinnSkjemaLenke('inntektsmelding')}
{altinnSkjemaLenke('ekspertbistand')}
{altinnSkjemaLenke('utsendtArbeidstakerEØS')}
Expand Down
47 changes: 18 additions & 29 deletions src/Pages/Saksoversikt/Saksfilter/Saksfilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,14 @@ import { Filter } from '../useOversiktStateTransitions';
import { Ekspanderbartpanel } from '../../../GeneriskeElementer/Ekspanderbartpanel';
import { BodyShort, Checkbox, CheckboxGroup, Heading, Label } from '@navikt/ds-react';
import { Filter as FilterIkon } from '@navikt/ds-icons';
import {
OppgaveTilstand,
OppgaveTilstandInfo,
Sakstype,
SakstypeOverordnet,
} from '../../../api/graphql-types';
import { OppgaveTilstand, OppgaveTilstandInfo, Sakstype, SakstypeOverordnet } from '../../../api/graphql-types';
import { capitalize, sorted, splittListe } from '../../../utils/util';
import { Set } from 'immutable';
import { OrganisasjonerOgTilgangerContext } from '../../OrganisasjonerOgTilgangerProvider';
import amplitude from '../../../utils/amplitude';
import { LenkeMedLogging } from '../../../GeneriskeElementer/LenkeMedLogging';
import { opprettInntektsmeldingURL } from '../../../lenker';
import { useLocation, useNavigate } from 'react-router-dom';
import { gittMiljo } from '../../../utils/environment';

type SaksfilterProps = {
filter: Filter;
Expand Down Expand Up @@ -335,28 +329,23 @@ const OpprettInntektsmelding = () => {
}, []);

if (tilgangInntektsmelding) {
return gittMiljo({
prod: null,
other: (
<div
ref={ref}
style={{
display: 'flex',
flexDirection: 'column',
gap: '4px',
paddingBottom: '32px',
}}
>
<Label children="Opprett inntektsmelding manuelt" />
<LenkeMedLogging
loggLenketekst={'Opprett inntektsmelding manuelt'}
href={opprettInntektsmeldingURL}
>
Opprett inntektsmelding for sykepenger
</LenkeMedLogging>
</div>
),
});
return <div
ref={ref}
style={{
display: 'flex',
flexDirection: 'column',
gap: '4px',
paddingBottom: '32px',
}}
>
<Label children="Opprett inntektsmelding manuelt" />
<LenkeMedLogging
loggLenketekst={'Opprett inntektsmelding manuelt'}
href={opprettInntektsmeldingURL}
>
Opprett inntektsmelding for sykepenger
</LenkeMedLogging>
</div>
} else {
return null;
}
Expand Down

0 comments on commit 63a68bf

Please sign in to comment.