-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wip få inn riktig status Oppfølgin Kreves status i avtale tabellen
- Loading branch information
Showing
8 changed files
with
95 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
...eg/GodkjenningSteg/endringAvAvtaleInnhold/OppfølgingGjennomført/OppfølgingGjennomført.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import { AvtaleContext } from '@/AvtaleProvider'; | ||
import BekreftelseModal from '@/komponenter/modal/BekreftelseModal'; | ||
import PakrevdInput from '@/komponenter/PakrevdInput/PakrevdInput'; | ||
import TelefonnummerInput from '@/komponenter/TelefonnummerInput/TelefonnummerInput'; | ||
import { oppdatereKontaktInformasjon } from '@/services/rest-service'; | ||
import { EndreKontaktInfo, TiltaksType, VTAO } from '@/types/avtale'; | ||
import BEMHelper from '@/utils/bem'; | ||
import { Neutral } from '@navikt/ds-icons/cjs'; | ||
import { BodyShort, Checkbox, Heading, Link } from '@navikt/ds-react'; | ||
import React, { FunctionComponent, useContext, useState } from 'react'; | ||
|
||
import VerticalSpacer from '@/komponenter/layout/VerticalSpacer'; | ||
|
||
const OppfølgingGjennomført: FunctionComponent = () => { | ||
const cls = BEMHelper('endreKontaktInformasjon'); | ||
const { avtale, hentAvtale, settAvtaleInnholdVerdi } = useContext(AvtaleContext); | ||
const vtao = avtale.gjeldendeInnhold.vtao; | ||
|
||
const [modalApen, setModalApen] = useState(false); | ||
|
||
const type: TiltaksType = avtale.tiltakstype; | ||
const endreRefusjonInfo: boolean = | ||
type === 'MIDLERTIDIG_LONNSTILSKUDD' || type === 'VARIG_LONNSTILSKUDD' || type === 'SOMMERJOBB'; | ||
|
||
const endreKontaktInformasjon = async (): Promise<void> => { | ||
//await oppdatereKontaktInformasjon(avtale, kontaktInfo); | ||
setModalApen(false); | ||
await hentAvtale(avtale.id); | ||
}; | ||
|
||
return ( | ||
<> | ||
<Link | ||
onClick={(event) => { | ||
event.stopPropagation(); | ||
setModalApen(true); | ||
}} | ||
href="#" | ||
role="menuitem" | ||
className={cls.element('link')} | ||
> | ||
<div aria-hidden={true}> | ||
<Neutral className={cls.element('ikon')} /> | ||
</div> | ||
Oppfølging VTA-O Gjennomført | ||
</Link> | ||
<BekreftelseModal | ||
avbrytelseTekst="Avbryt" | ||
bekreftelseTekst="Fortsett" | ||
oversiktTekst="Oppfølging VTA-O Gjennomført" | ||
modalIsOpen={modalApen} | ||
bekreftOnClick={endreKontaktInformasjon} | ||
lukkModal={() => setModalApen(false)} | ||
> | ||
<BodyShort size="small"> | ||
Jeg bekrefter at det har blitt foretatt oppfølging av deltaker og vurdert at tiltaket skal | ||
fortsette. | ||
</BodyShort> | ||
</BekreftelseModal> | ||
</> | ||
); | ||
}; | ||
|
||
export default OppfølgingGjennomført; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters