Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
sjekker at api ikke bøhver å oppdateres for komponentene
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Feb 28, 2024
1 parent 79cd953 commit a69f4fb
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 16 deletions.
3 changes: 2 additions & 1 deletion src/komponenter/endre-situasjon-nytt-api/dagpenger-info.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { VeiledningsProps } from './veiledning';
import { Link, ReadMore } from '@navikt/ds-react';

import { VeiledningsProps } from './veiledning';
import { dagpengerSoknadLenke } from '../../innhold/lenker';
import prettyPrintDato from '../../utils/pretty-print-dato';
import { plussDager } from '../../utils/date-utils';
Expand Down
3 changes: 2 additions & 1 deletion src/komponenter/endre-situasjon-nytt-api/meldekort-info.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import prettyPrintDato from '../../utils/pretty-print-dato';
import { ReadMore } from '@navikt/ds-react';

import prettyPrintDato from '../../utils/pretty-print-dato';
import { plussDager } from '../../utils/date-utils';
import { VeiledningsProps } from './veiledning';
import { PermittertSvar } from '../../models/endring-av-situasjon';
Expand Down
6 changes: 3 additions & 3 deletions src/komponenter/endre-situasjon-nytt-api/sammendrag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import { loggAktivitet } from '../../metrics/metrics';
import TilleggsData from '../innsyn/tilleggsdata';
import { svarMap } from '../../models/sporsmal-og-svar';
import PermittertModal from './permittert-modal';

import spacing from '../../spacing.module.css';
import flexStyles from '../../flex.module.css';
import BesvarelseLesMer from '../innsyn/besvarelse-les-mer';
import SendInnDokumentasjon from './send-inn-dokumentasjon';
import { dialogLenke } from '../../innhold/lenker';

import spacing from '../../spacing.module.css';
import flexStyles from '../../flex.module.css';

const Sammendrag = (props: any) => {
const [openEndreModal, setOpenEndreModal] = useState(false);
const [harLestOmEndringer, setHarLestOmEndringer] = useState<boolean>(false);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import { useState } from 'react';
import { BodyShort, Checkbox, CheckboxGroup, Heading, Loader } from '@navikt/ds-react';

import { useAmplitudeData } from '../hent-initial-data/amplitude-provider';
import { useProfil } from '../../contexts/profil';

import { Profil } from '../../profil';
import { BesvarelseResponse, useBesvarelse } from '../../contexts/besvarelse';
import { SituasjonSvar } from './veiledning';
import { useProfil } from '../../contexts/profil';
import { useAmplitudeData } from '../hent-initial-data/amplitude-provider';
import { useState } from 'react';
import { loggAktivitet } from '../../metrics/metrics';
import { PermittertSvar } from '../../models/endring-av-situasjon';
import spacing from '../../spacing.module.css';
import { BodyShort, Checkbox, CheckboxGroup, Heading, Loader } from '@navikt/ds-react';
import { dokumentasjon_url } from '../../ducks/urls';

import spacing from '../../spacing.module.css';

export const harSendtInnNyDokumentasjon = (profil: Profil | null, besvarelse: BesvarelseResponse) => {
const harSendtInnDokumentasjon = Boolean(profil?.aiaHarSendtInnDokumentasjonForEndring);
if (!harSendtInnDokumentasjon) {
Expand Down
2 changes: 1 addition & 1 deletion src/komponenter/endre-situasjon-nytt-api/steg1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import React from 'react';
import { Button, Select } from '@navikt/ds-react';

import { PermittertSvar, permittertTekster } from '../../models/endring-av-situasjon';
import { DinSituasjonSvar } from '../../hooks/use-brukerregistrering-data';

import spacing from '../../spacing.module.css';
import flex from '../../flex.module.css';
import { DinSituasjonSvar } from '../../hooks/use-brukerregistrering-data';

type SituasjonSvar = PermittertSvar | DinSituasjonSvar;

Expand Down
2 changes: 1 addition & 1 deletion src/komponenter/endre-situasjon-nytt-api/steg2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import { loggAktivitet } from '../../metrics/metrics';
import { dinSituasjonSvarTekster, PermittertSvar, permittertTekster } from '../../models/endring-av-situasjon';
import { svarMap } from '../../models/sporsmal-og-svar';
import prettyPrintDato from '../../utils/pretty-print-dato';
import { DinSituasjonSvar } from '../../hooks/use-brukerregistrering-data';

import spacing from '../../spacing.module.css';
import flex from '../../flex.module.css';
import { DinSituasjonSvar } from '../../hooks/use-brukerregistrering-data';

type SituasjonSvar = PermittertSvar | DinSituasjonSvar;

Expand Down
2 changes: 1 addition & 1 deletion src/komponenter/endre-situasjon-nytt-api/steg3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import { AmplitudeData } from '../../metrics/amplitude-utils';
import { loggAktivitet } from '../../metrics/metrics';
import Veiledning, { SituasjonSvar } from './veiledning';
import TilleggsData from '../innsyn/tilleggsdata';
import { DinSituasjonSvar } from '../../hooks/use-brukerregistrering-data';

import spacing from '../../spacing.module.css';
import flex from '../../flex.module.css';
import { DinSituasjonSvar } from '../../hooks/use-brukerregistrering-data';

export interface Steg3Props {
amplitudeData: AmplitudeData;
Expand Down
7 changes: 4 additions & 3 deletions src/komponenter/endre-situasjon-nytt-api/veiledning.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import { BodyLong, BodyShort, Link, ReadMore } from '@navikt/ds-react';

import { useAmplitudeData } from '../hent-initial-data/amplitude-provider';

import { saksbehandlingstiderDagpengerUrl } from '../../innhold/lenker';
import Feedback from '../feedback/feedback-profil';
import prettyPrintDato from '../../utils/pretty-print-dato';
import { PermittertSvar } from '../../models/endring-av-situasjon';
import { plussDager } from '../../utils/date-utils';

import spacing from '../../spacing.module.css';
import { konkurs_url } from '../../ducks/urls';
import { loggAktivitet } from '../../metrics/metrics';
import { useAmplitudeData } from '../hent-initial-data/amplitude-provider';
import { DinSituasjonSvar } from '../../hooks/use-brukerregistrering-data';

import spacing from '../../spacing.module.css';

export type SituasjonSvar = PermittertSvar | DinSituasjonSvar;

export interface VeiledningsProps {
Expand Down

0 comments on commit a69f4fb

Please sign in to comment.