1
- import { FormattedMessage , useIntl } from 'react-intl' ;
1
+ import { useIntl } from 'react-intl' ;
2
2
3
3
import { HStack } from '@navikt/ds-react' ;
4
4
import { DateLabel } from '@navikt/ft-ui-komponenter' ;
@@ -30,14 +30,14 @@ export const Situasjon = ({ gjeldende: { barn, termindato, utstedtdato } }: Prop
30
30
key = { barn [ 0 ] . barn . fødselsdato }
31
31
kilde = { barn [ 0 ] . kilde }
32
32
value = { < DateLabel dateString = { barn [ 0 ] . barn . fødselsdato } /> }
33
- label = { < FormattedMessage id = " Label.Fodselsdato" /> }
33
+ label = { intl . formatMessage ( { id : ' Label.Fodselsdato' } ) }
34
34
/>
35
35
{ barn [ 0 ] . barn . dødsdato && (
36
36
< FaktaBox
37
37
key = { barn [ 0 ] . barn . fødselsdato }
38
38
kilde = { barn [ 0 ] . kilde }
39
39
value = { < DateLabel dateString = { barn [ 0 ] . barn . dødsdato } /> }
40
- label = { < FormattedMessage id = " Label.Dodsdato" /> }
40
+ label = { intl . formatMessage ( { id : ' Label.Dodsdato' } ) }
41
41
/>
42
42
) }
43
43
</ >
@@ -48,20 +48,20 @@ export const Situasjon = ({ gjeldende: { barn, termindato, utstedtdato } }: Prop
48
48
key = { `${ b . barn . fødselsdato } -${ b . barn . dødsdato } -${ b . kilde } ` }
49
49
kilde = { b . kilde }
50
50
value = { formaterLiv ( b . barn ) }
51
- label = { < FormattedMessage id = " Label.NummerertBarn" values = { { nummer : index + 1 } } /> }
51
+ label = { intl . formatMessage ( { id : ' Label.NummerertBarn' } , { nummer : index + 1 } ) }
52
52
/>
53
53
) ) }
54
54
{ termindato && (
55
55
< FaktaBox
56
56
kilde = { termindato . kilde }
57
- label = { < FormattedMessage id = " Label.Termindato" /> }
57
+ label = { intl . formatMessage ( { id : ' Label.Termindato' } ) }
58
58
value = { < DateLabel dateString = { termindato . termindato } /> }
59
59
/>
60
60
) }
61
61
{ utstedtdato && (
62
62
< FaktaBox
63
63
kilde = { utstedtdato . kilde }
64
- label = { < FormattedMessage id = " Label.Utstedtdato" /> }
64
+ label = { intl . formatMessage ( { id : ' Label.Utstedtdato' } ) }
65
65
value = { < DateLabel dateString = { utstedtdato . utstedtdato } /> }
66
66
/>
67
67
) }
0 commit comments