Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat. vise diskresjonskoder til besluttere på oversikten #1308

Merged
merged 2 commits into from
Mar 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 17 additions & 23 deletions src/BeslutterOversikt/AvtaleTabellBeslutter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { Path } from '@/Router';
import { Varsel } from '@/types/varsel';
import { kunStorForbokstav } from '@/utils/stringUtils';
import { tiltakstypeTekstKort } from '@/messages';
import NavnMedDiskresjonskode from '@/AvtaleOversikt/NavnMedDiskresjonskode';

const cls = BEMHelper('avtaletabell');

Expand Down Expand Up @@ -40,32 +41,25 @@ const AvtaleTabellBeslutter = (props: Props) => {
});
}}
>
<Table.DataCell>
<Table.DataCell textSize="small">
{ulestVarsel && <span aria-hidden={!ulestVarsel} className="ulest-varsel-ikon" />}
<BodyShort size="small">
{kunStorForbokstav(tiltakstypeTekstKort[avtale.tiltakstype])}
</BodyShort>
</Table.DataCell>
<Table.DataCell>
<BodyShort size="small">{avtale.bedriftNavn}</BodyShort>
</Table.DataCell>
<Table.DataCell>
<BodyShort size="small">
{avtale.deltakerFornavn || ''}&nbsp;
{avtale.deltakerEtternavn || ''}
</BodyShort>
{kunStorForbokstav(tiltakstypeTekstKort[avtale.tiltakstype])}
</Table.DataCell>
<Table.DataCell>
<BodyShort size="small">{avtale.veilederNavIdent || 'Ufordelt'}</BodyShort>
<Table.DataCell textSize="small">{avtale.bedriftNavn}</Table.DataCell>
<Table.DataCell textSize="small">
<NavnMedDiskresjonskode
diskresjonskode={avtale.diskresjonskode}
fornavn={avtale.deltakerFornavn}
etternavn={avtale.deltakerEtternavn}
/>
</Table.DataCell>
<Table.DataCell>
<BodyShort size="small">
{new Date(avtale.startDato).toLocaleDateString('no-NB', {
day: 'numeric',
month: 'short',
year: '2-digit',
})}
</BodyShort>
<Table.DataCell textSize="small">{avtale.veilederNavIdent || 'Ufordelt'}</Table.DataCell>
<Table.DataCell textSize="small">
{new Date(avtale.startDato).toLocaleDateString('no-NB', {
day: 'numeric',
month: 'short',
year: '2-digit',
})}
</Table.DataCell>
<Table.DataCell>
<EtikettStatus
Expand Down
1 change: 1 addition & 0 deletions src/types/avtale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export type AvtaleMinimalForBeslutter = {
bedriftNavn: string;
status: TilskuddPeriodeStatus;
tiltakstype: TiltaksType;
diskresjonskode: Diskresjonskode;
};

export type Avtaleinnhold = {
Expand Down