1
1
import { Box , Heading , Link } from '@navikt/ds-react' ;
2
2
import React from 'react' ;
3
- import { FormattedMessage , useIntl } from 'react-intl' ;
3
+ import { useIntl } from 'react-intl' ;
4
4
import { File } from '@navikt/ds-icons' ;
5
5
import intlHelper from '@navikt/sif-common-core-ds/src/utils/intlUtils' ;
6
+ import { Msg } from '../../i18n' ;
7
+ import { InnsendtSøknadArbeidsgiver } from '../../server/api-models/ArbeidsgivereSchema' ;
6
8
import { InnsendtSøknadDokument } from '../../types/InnsendtSøknadDocument' ;
7
9
import { Organisasjon } from '../../types/Organisasjon' ;
8
10
import { InnsendtSøknad , InnsendtSøknadstype } from '../../types/Søknad' ;
9
11
import { getDokumentFrontendUrl , getSøknadDokumentFilnavn } from '../../utils/dokumentUtils' ;
10
12
import { browserEnv } from '../../utils/env' ;
11
- import { InnsendtSøknadArbeidsgiver } from '../../server/api-models/ArbeidsgivereSchema' ;
12
13
13
14
interface Props {
14
15
søknad : InnsendtSøknad ;
@@ -46,7 +47,7 @@ const InnsendtSøknadContent: React.FunctionComponent<Props> = ({ søknad }) =>
46
47
organisasjon . organisasjonsnummer ,
47
48
) } >
48
49
< File title = "Dokumentikon" />
49
- < FormattedMessage
50
+ < Msg
50
51
id = "dokumenterSomKanLastesNed.bekreftelse"
51
52
values = { {
52
53
organisasjonsnavn : organisasjon . navn ,
@@ -76,7 +77,7 @@ const InnsendtSøknadContent: React.FunctionComponent<Props> = ({ søknad }) =>
76
77
< >
77
78
< Box >
78
79
< Heading size = "xsmall" level = "4" spacing = { true } >
79
- < FormattedMessage id = { `dokumenterTittel.${ søknad . søknadstype } ` } />
80
+ < Msg id = { `dokumenterTittel.${ søknad . søknadstype } ` } />
80
81
</ Heading >
81
82
{ søknad . dokumenter && søknad . dokumenter . length > 0 && (
82
83
< ul > { søknad . dokumenter . map ( ( dokument ) => mapDokumenter ( dokument ) ) } </ ul >
@@ -89,10 +90,10 @@ const InnsendtSøknadContent: React.FunctionComponent<Props> = ({ søknad }) =>
89
90
{ søknad . søknadstype === InnsendtSøknadstype . PP_SYKT_BARN && harArbeidsgiver ( ) && (
90
91
< Box className = "mt-8" >
91
92
< Heading size = "xsmall" level = "4" spacing = { true } >
92
- < FormattedMessage id = "bekreftelseTilArbeidsgiver.title" />
93
+ < Msg id = "bekreftelseTilArbeidsgiver.title" />
93
94
</ Heading >
94
95
< p >
95
- < FormattedMessage id = "bekreftelseTilArbeidsgiver.info" />
96
+ < Msg id = "bekreftelseTilArbeidsgiver.info" />
96
97
</ p >
97
98
{ 'arbeidsgivere' in søknad . søknad &&
98
99
'organisasjoner' in søknad . søknad . arbeidsgivere &&
0 commit comments