@@ -4,6 +4,7 @@ import Tabellrader from "./Tabellrader";
4
4
import {
5
5
getHistorikkLabels ,
6
6
historikkHarOverordnetEnhet ,
7
+ historikkHarStatistikkForBransje ,
7
8
HistorikkLabels ,
8
9
konverterTilKvartalsvisSammenligning ,
9
10
KvartalsvisSammenligning ,
@@ -16,12 +17,14 @@ export interface TabellProps {
16
17
kvartalsvisSammenligning : KvartalsvisSammenligning [ ] ;
17
18
harOverordnetEnhet : boolean ;
18
19
historikkLabels : HistorikkLabels ;
20
+ harStatistikkForBransje : boolean ;
19
21
}
20
22
21
23
const Tabell : FunctionComponent < TabellProps > = ( {
22
24
kvartalsvisSammenligning,
23
25
historikkLabels,
24
26
harOverordnetEnhet,
27
+ harStatistikkForBransje,
25
28
} ) => {
26
29
const headerOverordnetEnhet = ( ) => {
27
30
if ( harOverordnetEnhet ) {
@@ -45,7 +48,7 @@ const Tabell: FunctionComponent<TabellProps> = ({
45
48
</ Table . HeaderCell >
46
49
{ headerOverordnetEnhet ( ) }
47
50
< Table . HeaderCell scope = "col" align = "right" >
48
- Bransje: { historikkLabels . næringEllerBransje }
51
+ { harStatistikkForBransje ? " Bransje: " : "Næring: " } { historikkLabels . næringEllerBransje }
49
52
</ Table . HeaderCell >
50
53
< Table . HeaderCell scope = "col" align = "right" >
51
54
Sektor: { historikkLabels . sektor }
@@ -87,6 +90,9 @@ export function hentTabellProps(
87
90
harOverordnetEnhet,
88
91
historikkLabels,
89
92
kvartalsvisSammenligning : kvartalsvisSammenligningReversed ,
93
+ harStatistikkForBransje : historikkHarStatistikkForBransje (
94
+ restSykefraværsstatistikk . data
95
+ )
90
96
} ;
91
97
}
92
98
}
0 commit comments