diff --git a/src/app/components/meldekortdetaljer/ukevisning/dagliste.tsx b/src/app/components/meldekortdetaljer/ukevisning/dagliste.tsx index 0243dd7d..bec3d291 100644 --- a/src/app/components/meldekortdetaljer/ukevisning/dagliste.tsx +++ b/src/app/components/meldekortdetaljer/ukevisning/dagliste.tsx @@ -36,7 +36,7 @@ export const hentDagliste = ( meldekortdager: MeldekortDag[], typeYtelsePostfix: string, medUtvidetInformasjon: boolean = true -): JSX.Element[] => { +): React.ReactElement[] => { const dagListe = []; const ukedager = hentUkedagerSomStringListe(); diff --git a/src/app/components/sprakvelger/sprakvelger.tsx b/src/app/components/sprakvelger/sprakvelger.tsx index b8bf38e2..c7d12d70 100644 --- a/src/app/components/sprakvelger/sprakvelger.tsx +++ b/src/app/components/sprakvelger/sprakvelger.tsx @@ -51,7 +51,7 @@ const renderMenuItem = (locale: Locale, valgtSprak: string) => { const Sprakvelger: React.FunctionComponent = props => { const { currentLocale, locales, aktivtMeldekort, settLocale } = props; - const handleSelection = (value: JSX.Element[]) => { + const handleSelection = (value: React.ReactElement[]) => { const newLocale: string = value[1].key ? value[1].key.toString() : Konstanter.defaultLocale; @@ -67,7 +67,7 @@ const Sprakvelger: React.FunctionComponent = props => {
handleSelection(value)} + onSelection={(value: React.ReactElement[]) => handleSelection(value)} >