File tree 4 files changed +15
-15
lines changed
4 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 1
- import React , { useCallback , useState } from "react" ;
1
+ import React , { ReactElement , useCallback , useState } from "react" ;
2
2
import "@navikt/bedriftsmeny/lib/bedriftsmeny.css" ;
3
3
import "@navikt/ds-css" ;
4
4
import styles from "./Banner.module.scss" ;
@@ -10,7 +10,7 @@ import '@navikt/arbeidsgiver-notifikasjon-widget/lib/esm/index.css';
10
10
import { sendBedriftValgtEvent } from "../amplitude/amplitude" ;
11
11
12
12
interface Props {
13
- tittelMedUnderTittel : string | JSX . Element ;
13
+ tittelMedUnderTittel : string | ReactElement ;
14
14
altinnOrganisasjoner : AltinnOrganisasjon [ ] ;
15
15
}
16
16
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import Document, {
10
10
Main ,
11
11
NextScript ,
12
12
} from "next/document" ;
13
- import React from "react" ;
13
+ import React , { ReactElement } from "react" ;
14
14
import { favicon_16x16_data , favicon_32x32_data } from "../utils/favicons" ;
15
15
import { isMockApp } from "../utils/envUtils" ;
16
16
@@ -59,7 +59,7 @@ export default class MyDocument extends Document<Props> {
59
59
return { ...initialProps , Decorator, language, kjørerMockApp : isMockApp ( ) } ;
60
60
}
61
61
62
- render ( ) : JSX . Element {
62
+ render ( ) : ReactElement {
63
63
const { Decorator, language, kjørerMockApp } = this . props ;
64
64
return (
65
65
< Html lang = { language || "no" } >
Original file line number Diff line number Diff line change 1
- import { Button } from "@navikt/ds-react" ;
2
- import { useReactToPrint } from "react-to-print" ;
3
- import React , { useRef } from "react" ;
4
- import { DownloadIcon } from "@navikt/aksel-icons" ;
1
+ import { Button } from "@navikt/ds-react" ;
2
+ import { useReactToPrint } from "react-to-print" ;
3
+ import React , { useRef } from "react" ;
4
+ import { DownloadIcon } from "@navikt/aksel-icons" ;
5
5
import styles from "./LastNedKnapp.module.css" ;
6
- import { sendKnappEvent } from "../../../amplitude/amplitude" ;
6
+ import { sendKnappEvent } from "../../../amplitude/amplitude" ;
7
7
8
8
export default function LastNedKnapp ( {
9
- innholdRef,
10
- } : {
11
- innholdRef : React . RefObject < HTMLDivElement > ;
9
+ innholdRef,
10
+ } : {
11
+ innholdRef : React . RefObject < HTMLDivElement | null > ;
12
12
} ) {
13
13
const lastNedKnappRef = useRef < HTMLButtonElement | null > ( null ) ;
14
14
const printFn = useReactToPrint ( {
@@ -34,7 +34,7 @@ export default function LastNedKnapp({
34
34
className = { `${ styles [ "last-ned-knapp" ] } ` }
35
35
onClick = { ( ) => printFn ( ) }
36
36
>
37
- < DownloadIcon title = { "Nedlastingsikon" } fontSize = "1.75rem" />
37
+ < DownloadIcon title = { "Nedlastingsikon" } fontSize = "1.75rem" />
38
38
Last ned
39
39
</ Button >
40
40
) ;
Original file line number Diff line number Diff line change 1
- import React , { FunctionComponent } from "react" ;
1
+ import React , { FunctionComponent , ReactElement } from "react" ;
2
2
import styles from "./Sammenligningspanel.module.css" ;
3
3
import { Speedometer } from "../Speedometer/Speedometer" ;
4
4
import {
@@ -86,7 +86,7 @@ export const Sammenligningspanel: FunctionComponent<Props> = ({
86
86
sammenligningsType
87
87
) ;
88
88
89
- const getPaneltittel = ( ) : JSX . Element | string => {
89
+ const getPaneltittel = ( ) : ReactElement | string => {
90
90
switch ( sammenligningsType ) {
91
91
case SammenligningsType . TOTALT :
92
92
return "Legemeldt sykefravær" ;
You can’t perform that action at this time.
0 commit comments