From b7bd85fc3de6c6ac2e66f10f6656ccfe33bc7fcd Mon Sep 17 00:00:00 2001 From: Ingrid Gladheim Date: Wed, 20 Nov 2024 13:13:30 +0100 Subject: [PATCH] =?UTF-8?q?IS-2791:=20Edit=20tooltip=20oppf=C3=B8lgingsopp?= =?UTF-8?q?gave?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FristDataCell.tsx | 9 ++++----- src/mocks/data/personoversiktEnhetMock.ts | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/components/FristDataCell.tsx b/src/components/FristDataCell.tsx index 68947911..1fef4477 100644 --- a/src/components/FristDataCell.tsx +++ b/src/components/FristDataCell.tsx @@ -6,10 +6,7 @@ import { HourglassTopFilledIcon, } from '@navikt/aksel-icons'; import React, { ReactElement, useState } from 'react'; -import { - AktivitetskravStatus, - oppfolgingsgrunnToString, -} from '@/api/types/personoversiktTypes'; +import { AktivitetskravStatus } from '@/api/types/personoversiktTypes'; import { Button, Table, Tooltip } from '@navikt/ds-react'; import OppfolgingsoppgaveModal from '@/components/OppfolgingsoppgaveModal'; import * as Amplitude from '@/utils/amplitude'; @@ -106,7 +103,9 @@ function fristerInfo( ), date: oppfolgingsoppgave.frist, tooltip: `${ - oppfolgingsgrunnToString[oppfolgingsoppgave.oppfolgingsgrunn] + selectedTab === OverviewTabType.MY_OVERVIEW + ? 'Åpne oppfølgingsoppgave' + : 'Oppfølgingsoppgave frist' }`, }); } diff --git a/src/mocks/data/personoversiktEnhetMock.ts b/src/mocks/data/personoversiktEnhetMock.ts index 70d008d7..77cd067a 100644 --- a/src/mocks/data/personoversiktEnhetMock.ts +++ b/src/mocks/data/personoversiktEnhetMock.ts @@ -516,7 +516,7 @@ export const personoversiktEnhetMock: PersonOversiktStatusDTO[] = [ }, ], }, - oppfolgingsoppgave: null, + oppfolgingsoppgave: getOppfolgingsoppgave(new Date('2024-01-01')), latestOppfolgingstilfelle: { oppfolgingstilfelleStart: new Date('2022-01-01'), oppfolgingstilfelleEnd: new Date('2022-12-31'),