Skip to content

Commit

Permalink
klage utfall har også felt for når klageinstans mottok klagen
Browse files Browse the repository at this point in the history
  • Loading branch information
RamziAbuQassim committed Aug 26, 2024
1 parent c2010ae commit d07eec7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as RemoteData from '@devexperts/remote-data-ts';
import { BodyShort, Label, Heading, Button, Tag } from '@navikt/ds-react';
import { BodyShort, Label, Heading, Button, VStack } from '@navikt/ds-react';
import classNames from 'classnames';

import * as DokumentApi from '~src/api/dokumentApi';
Expand Down Expand Up @@ -73,14 +73,19 @@ const OppsummeringAvKlage = (props: { klage: Klage; klagensVedtak: Vedtak }) =>
<Heading size="xsmall" level="6">
Utfallshistorikk
</Heading>
{props.klage.klagevedtakshistorikk.map((vedtattUtfall, idx) => (
<div key={`${props.klage.id} - ${idx}`}>
<BodyShort>
{vedtattUtfall.utfall ?? 'Anke'} -{' '}
{DateUtils.formatDateTime(vedtattUtfall.opprettet)}
</BodyShort>
</div>
))}
<VStack gap="2">
{props.klage.klagevedtakshistorikk.map((vedtattUtfall, idx) => (
<div key={`${props.klage.id} - ${idx}`}>
<BodyShort>{vedtattUtfall.utfall ?? 'Anke'}</BodyShort>
{vedtattUtfall.klageinstansMottok && (
<BodyShort>
Klageinstans mottok klagen:{' '}
{DateUtils.formatDateTime(vedtattUtfall.klageinstansMottok)}
</BodyShort>
)}
</div>
))}
</VStack>
</div>
)}

Expand Down Expand Up @@ -187,14 +192,6 @@ export const FormkravInfo = (props: { klage: Klage; klagensVedtak: Vedtak }) =>
/>
</div>

<div className={styles.klagevedtakshistorikkContainer}>
{props.klage.klagevedtakshistorikk.map((vedtattUtfall) => (
<Tag key={vedtattUtfall.opprettet} variant="info">
{vedtattUtfall.utfall} - {DateUtils.formatDateTime(vedtattUtfall.opprettet)}
</Tag>
))}
</div>

{props.klage.begrunnelse && (
<OppsummeringPar
label={formatMessage('formkrav.begrunnelse.label')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@
grid-template-columns: repeat(5, 1fr);
}

.klagevedtakshistorikkContainer {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: @spacing-s;
}

.formkravBegrunnelse {
white-space: pre-wrap;
}
Expand Down
1 change: 1 addition & 0 deletions src/types/Klage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export enum Utfall {
export interface VedtattUtfall {
utfall: Nullable<Utfall>;
opprettet: string;
klageinstansMottok: Nullable<string>;
}

export enum KlageSteg {
Expand Down

0 comments on commit d07eec7

Please sign in to comment.