Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IS-2791: Edit tooltip oppfølgingsoppgave #548

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/components/FristDataCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -106,7 +103,9 @@ function fristerInfo(
),
date: oppfolgingsoppgave.frist,
tooltip: `${
oppfolgingsgrunnToString[oppfolgingsoppgave.oppfolgingsgrunn]
selectedTab === OverviewTabType.MY_OVERVIEW
? 'Åpne oppfølgingsoppgave'
: 'Oppfølgingsoppgave frist'
}`,
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/mocks/data/personoversiktEnhetMock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down