-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flytt refusjon status inn i user info
- Loading branch information
Showing
7 changed files
with
57 additions
and
88 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
32 changes: 19 additions & 13 deletions
32
src/App/Hovedside/TjenesteBoksContainer/TiltakRefusjonboks/TiltakRefusjonboks.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 |
---|---|---|
@@ -1,32 +1,38 @@ | ||
import React, {useContext} from 'react'; | ||
import {refosoURL} from '../../../../lenker'; | ||
import React, { useContext } from 'react'; | ||
import { refosoURL } from '../../../../lenker'; | ||
import tiltakrefusjonikon from './tiltakrefusjonboks.svg'; | ||
import {StortTall, Tjenesteboks} from "../Tjenesteboks"; | ||
import {OrganisasjonsDetaljerContext} from "../../../OrganisasjonDetaljerProvider"; | ||
import { StortTall, Tjenesteboks } from '../Tjenesteboks'; | ||
import { OrganisasjonsDetaljerContext } from '../../../OrganisasjonDetaljerProvider'; | ||
|
||
const TiltakRefusjonboks = () => { | ||
const { valgtOrganisasjon } = useContext(OrganisasjonsDetaljerContext); | ||
if (valgtOrganisasjon === undefined) { | ||
return null; | ||
} | ||
|
||
const url = valgtOrganisasjon.organisasjon.OrganizationNumber !== '' | ||
? `${refosoURL}?bedrift=${valgtOrganisasjon.organisasjon.OrganizationNumber}` | ||
: refosoURL; | ||
const url = | ||
valgtOrganisasjon.organisasjon.OrganizationNumber !== '' | ||
? `${refosoURL}?bedrift=${valgtOrganisasjon.organisasjon.OrganizationNumber}` | ||
: refosoURL; | ||
|
||
const klareForInnsending = valgtOrganisasjon.refusjonstatus["KLAR_FOR_INNSENDING"] | ||
const klareForInnsending = valgtOrganisasjon.refusjonstatus['KLAR_FOR_INNSENDING']; | ||
|
||
return <Tjenesteboks | ||
return ( | ||
<Tjenesteboks | ||
ikon={tiltakrefusjonikon} | ||
href={url} | ||
tittel="Refusjon for lønnstilskudd og sommerjobb" | ||
aria-label="Refusjon for lønnstilskudd og sommerjobb. Søk og se refusjon for lønnstilskudd og sommerjobb" | ||
> | ||
{klareForInnsending === undefined ? null : <> | ||
<StortTall>{klareForInnsending}</StortTall> refusjoner klare for innsending. <br/> | ||
</>} | ||
{klareForInnsending === undefined ? null : ( | ||
<> | ||
<StortTall>{klareForInnsending}</StortTall> refusjoner klare for innsending.{' '} | ||
<br /> | ||
</> | ||
)} | ||
Søk og se refusjon | ||
</Tjenesteboks>; | ||
</Tjenesteboks> | ||
); | ||
}; | ||
|
||
export default TiltakRefusjonboks; |
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