This repository has been archived by the owner on May 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from navikt/fix/endring-i-cv-model
FO-3020 Legger til endring for CV model
- Loading branch information
Showing
6 changed files
with
77 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react'; | ||
import { Normaltekst } from 'nav-frontend-typografi'; | ||
import { ArenaPerson } from '../../../../rest/datatyper/arenaperson'; | ||
import Informasjonsbolk from '../../../felles/informasjonsbolk'; | ||
import { formaterDato, safeMap } from '../../../../utils'; | ||
|
||
type Props = Pick<ArenaPerson, 'andreGodkjenninger'>; | ||
|
||
function AndreGodkjenninger(props: Props) { | ||
const { andreGodkjenninger, ...rest } = props; | ||
|
||
const annenGodkjenningListe = safeMap(andreGodkjenninger, (annengGodkjenning, index) => ( | ||
<div key={`andregodkjenninger-${index}`} className="underinformasjon"> | ||
<Normaltekst key={`andregodkjenninger-${index}`} className="underinformasjon"> | ||
{annengGodkjenning.tittel} | ||
</Normaltekst> | ||
<Normaltekst>Gjennomført dato: {formaterDato(annengGodkjenning.gjennomfortDato, true)}</Normaltekst> | ||
</div> | ||
)); | ||
|
||
return ( | ||
<Informasjonsbolk header="Andre godkjenninger" headerTypo="ingress" {...rest}> | ||
{annenGodkjenningListe} | ||
</Informasjonsbolk> | ||
); | ||
} | ||
|
||
export default AndreGodkjenninger; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react'; | ||
import { Normaltekst } from 'nav-frontend-typografi'; | ||
import { ArenaPerson } from '../../../../rest/datatyper/arenaperson'; | ||
import Informasjonsbolk from '../../../felles/informasjonsbolk'; | ||
import { formaterDato, safeMap } from '../../../../utils'; | ||
|
||
type Props = Pick<ArenaPerson, 'godkjenninger'>; | ||
|
||
function Godkjenninger(props: Props) { | ||
const { godkjenninger, ...rest } = props; | ||
|
||
const godkjenningListe = safeMap(godkjenninger, (godkjenning, index) => ( | ||
<div key={`godkjenninger-${index}`} className="underinformasjon"> | ||
<Normaltekst key={`godkjenninger-${index}`} className="underinformasjon"> | ||
{godkjenning.tittel} | ||
</Normaltekst> | ||
<Normaltekst>Gjennomført dato: {formaterDato(godkjenning.gjennomfortDato, true)}</Normaltekst> | ||
</div> | ||
)); | ||
|
||
return ( | ||
<Informasjonsbolk header="Godkjenninger i lovregulerte yrker" headerTypo="ingress" {...rest}> | ||
{godkjenningListe} | ||
</Informasjonsbolk> | ||
); | ||
} | ||
|
||
export default Godkjenninger; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters