-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vis informasjon om foresatte innsynsrett (#579)
* Gjort om til accordian på Om dialogen og lagt til innsynsrett info/under 18 * Lagt til Guide panel for under 18 brukere, men vises forsatt for alle brukere * Lagt til sånn ar innsynsrett info på guidpanel når man lager ny dialog blir bare vist når ekstern bruker er under 18 * Hent innsynsrett kun når det er ekstern bruker * korriger henting av innsynsrett * endre hvordan man henter innsynsrett * vis infomasjon om innsynsrett * fiks url ril veilarbaktivitet * Fisk url * Fisk url igjen * veileder kan se guidepanel * text styling på guidpanel text * rydd opp * Name fíx * prettier fix --------- Co-authored-by: Mads Lee Giil <[email protected]>
- Loading branch information
1 parent
4fc4c2d
commit 2542d46
Showing
10 changed files
with
145 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { fetchData } from '../utils/Fetch'; | ||
import { createGenericStore } from '../utils/genericStore'; | ||
import { aktivitetBasePath } from './UseApiBasePath'; | ||
|
||
export const fetchInnsynsrett = (fnr: string | undefined) => | ||
fetchData<Innsynsrett>(`${aktivitetBasePath}/api/innsynsrett`, { | ||
method: 'POST', | ||
body: JSON.stringify({ fnr }) | ||
}); | ||
|
||
interface Innsynsrett { | ||
foresatteHarInnsynsrett: boolean; | ||
} | ||
|
||
export const useInnsynsrettStore = createGenericStore(undefined as Innsynsrett | undefined, fetchInnsynsrett); | ||
|
||
export const useInnsynsrett = () => | ||
useInnsynsrettStore((state) => { | ||
return state.data?.foresatteHarInnsynsrett; | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Accordion, BodyShort, Heading } from '@navikt/ds-react'; | ||
import React, { useState } from 'react'; | ||
|
||
export const InnsynsrettAccordionItem = () => { | ||
const [open, setOpen] = useState(false); | ||
|
||
function handleClick() { | ||
setOpen(!open); | ||
} | ||
|
||
return ( | ||
<Accordion.Item> | ||
<Accordion.Header onClick={handleClick}> | ||
<Heading level="2" size="small"> | ||
Er du under 18 år? | ||
</Heading> | ||
</Accordion.Header> | ||
<Accordion.Content> | ||
<Heading level="3" size="xsmall" className="pt-4"> | ||
Er du under 18 år? | ||
</Heading> | ||
<BodyShort className="pb-4"> | ||
Når du er under 18 år så har dine foresatte rett til å be om å få se alt du skriver i NAV sine | ||
tjenester. Derfor bør du ikke skrive noe her som du ikke vil at foresatte dine skal lese. | ||
</BodyShort> | ||
<BodyShort> | ||
Når du blir 18 år vil de ikke kunne lese nye ting du skriver, men de kan fortsatt lese det du skrev | ||
før du fylte 18 år. | ||
</BodyShort> | ||
</Accordion.Content> | ||
</Accordion.Item> | ||
); | ||
}; |
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,56 @@ | ||
import { Accordion, BodyShort, Heading, Link } from '@navikt/ds-react'; | ||
import React, { useState } from 'react'; | ||
|
||
export function RettigheterAccordionItem() { | ||
const [open, setOpen] = useState(false); | ||
|
||
function handleClick() { | ||
setOpen(!open); | ||
} | ||
|
||
return ( | ||
<Accordion.Item> | ||
<Accordion.Header onClick={handleClick}> | ||
<Heading level="2" size="small"> | ||
Rettigheter og personvern | ||
</Heading> | ||
</Accordion.Header> | ||
<Accordion.Content> | ||
<BodyShort> | ||
Informasjon du gir i meldinger til veilederen din brukes til å vurdere behovet ditt for hjelp fra | ||
NAV. | ||
</BodyShort> | ||
<Heading level="3" size="xsmall" className="pt-4"> | ||
Manuell oppfølging | ||
</Heading> | ||
<BodyShort className="pb-4"> | ||
NAV henter informasjon om deg fra Folkeregisteret og sjekker mot Kontakt- og reservasjonsregisteret. | ||
</BodyShort> | ||
<BodyShort> | ||
Hvis du ikke ønsker å bruke den digitale dialogen, så kan du reservere deg mot digital kommunikasjon | ||
med det offentlige hos Norge. no Hvis du reserverer deg mot digital kommunikasjon, vil NAV følge deg | ||
opp manuelt. | ||
</BodyShort> | ||
|
||
<Heading level="3" size="xsmall" className="pt-4"> | ||
Deling og lagring | ||
</Heading> | ||
<BodyShort className="pb-4"> | ||
Opplysningene i dialogen og aktivitetsplanen blir ikke delt med andre offentlige etater, med mindre | ||
de har rett til å hente slike opplysninger. | ||
</BodyShort> | ||
<BodyShort className="pb-4"> | ||
Opplysningene i dialogen og aktivitetsplanen blir lagret og oppbevart etter arkivloven. Meldinger i | ||
dialogen kan ikke slettes når de først er opprettet. | ||
</BodyShort> | ||
<BodyShort> | ||
Les mer om{' '} | ||
<Link href="https://www.nav.no/no/NAV+og+samfunn/Om+NAV/personvern-i-arbeids-og-velferdsetaten"> | ||
hvordan NAV behandler personopplysninger | ||
</Link> | ||
. | ||
</BodyShort> | ||
</Accordion.Content> | ||
</Accordion.Item> | ||
); | ||
} |
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