File tree Expand file tree Collapse file tree 2 files changed +8
-21
lines changed
packages/fakta/fodsel/src/components/fakta Expand file tree Collapse file tree 2 files changed +8
-21
lines changed Original file line number Diff line number Diff line change 1
1
import { FormattedMessage , useIntl } from 'react-intl' ;
2
2
3
- import { ExclamationmarkTriangleFillIcon } from '@navikt/aksel-icons' ;
4
3
import { BodyShort , HStack , VStack } from '@navikt/ds-react' ;
5
4
import { ReadOnlyField } from '@navikt/ft-form-hooks' ;
6
5
import { DateLabel } from '@navikt/ft-ui-komponenter' ;
@@ -36,9 +35,7 @@ export const FaktaFødselFraFReg = ({ register }: Props) => {
36
35
</ ValueLabel >
37
36
{ barn [ 0 ] . dødsdato && (
38
37
< ValueLabel label = { < FormattedMessage id = "Label.Dodsdato" /> } >
39
- < BodyShort >
40
- < DateLabel dateString = { barn [ 0 ] . dødsdato } /> < MarkeringDød />
41
- </ BodyShort >
38
+ < DateLabel dateString = { barn [ 0 ] . dødsdato } />
42
39
</ ValueLabel >
43
40
) }
44
41
< ValueLabel label = { < FormattedMessage id = "Label.AntallBarn" /> } > { barn . length } </ ValueLabel >
@@ -63,16 +60,7 @@ export const FaktaFødselFraFReg = ({ register }: Props) => {
63
60
{ harDødtBarn && (
64
61
< ReadOnlyField
65
62
size = "medium"
66
- value = {
67
- dødsdato ? (
68
- < >
69
- < DateLabel dateString = { dødsdato } />
70
- < MarkeringDød />
71
- </ >
72
- ) : (
73
- '-'
74
- )
75
- }
63
+ value = { dødsdato ? < DateLabel dateString = { dødsdato } /> : '-' }
76
64
label = { < FormattedMessage id = "Label.Dodsdato" /> }
77
65
hideLabel = { index > 0 }
78
66
/>
@@ -84,5 +72,3 @@ export const FaktaFødselFraFReg = ({ register }: Props) => {
84
72
</ FaktaKort >
85
73
) ;
86
74
} ;
87
-
88
- const MarkeringDød = ( ) => < ExclamationmarkTriangleFillIcon className = { styles . dødMarkering } /> ;
Original file line number Diff line number Diff line change @@ -21,11 +21,6 @@ export const FaktaFødselFraSøknad = ({
21
21
return (
22
22
< FaktaKort label = { tittel } >
23
23
< VStack gap = "4" >
24
- { barn . length > 0 && (
25
- < ValueLabel label = { < FormattedMessage id = "Label.Fodselsdato" /> } >
26
- < DateLabel dateString = { barn [ 0 ] . fødselsdato } />
27
- </ ValueLabel >
28
- ) }
29
24
{ termindato && (
30
25
< ValueLabel label = { < FormattedMessage id = "Label.Termindato" /> } >
31
26
< DateLabel dateString = { termindato } />
@@ -38,6 +33,12 @@ export const FaktaFødselFraSøknad = ({
38
33
) }
39
34
{ antallBarn && < ValueLabel label = { < FormattedMessage id = "Label.AntallBarn" /> } > { antallBarn } </ ValueLabel > }
40
35
36
+ { barn . length > 0 && (
37
+ < ValueLabel label = { < FormattedMessage id = "Label.Fodselsdato" /> } >
38
+ < DateLabel dateString = { barn [ 0 ] . fødselsdato } />
39
+ </ ValueLabel >
40
+ ) }
41
+
41
42
{ terminbekreftelseDokument && (
42
43
< HStack gap = "2" >
43
44
< Label >
You can’t perform that action at this time.
0 commit comments