Skip to content

Commit

Permalink
Endre slett relasjoner paabegynt
Browse files Browse the repository at this point in the history
  • Loading branch information
betsytraran committed Jun 17, 2024
1 parent 63a0996 commit b31e56d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,13 @@ export const PdlVisning = ({
identtype={identtype}
erPdlVisning={miljoeVisning}
/>
<PdlRelasjoner data={hentPerson} />
<PdlRelasjoner
data={hentPerson}
pdlfData={pdlfPerson}
tmpPersoner={tmpPdlforvalter}
ident={ident}
identtype={identtype}
/>
<FalskIdentitet data={falskIdentitet} />
<UtenlandsId data={utenlandskIdentifikasjonsnummer} />
<KontaktinformasjonForDoedsbo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Visning = ({ data, idx }: VisningProps) => {
)
}

export const PdlPartner = ({ data }: PdlPartnerProps) => {
export const PdlPartner = ({ data, pdlfData, tmpPersoner, ident, identtype }: PdlPartnerProps) => {
const partnere = getSortedSivilstand(data)
if (!partnere || partnere.length === 0) {
return null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ type PdlRelasjonerProps = {
visTittel?: boolean
}

export const PdlRelasjoner = ({ data }: PdlRelasjonerProps) => {
export const PdlRelasjoner = ({
data,
pdlfData,
tmpPersoner,
ident,
identtype,
}: PdlRelasjonerProps) => {
if (!data) {
return null
}
Expand All @@ -27,7 +33,13 @@ export const PdlRelasjoner = ({ data }: PdlRelasjonerProps) => {
return (
<ErrorBoundary>
<>
<PdlPartner data={partnere} />
<PdlPartner
data={partnere}
pdlfData={pdlfData?.sivilstand}
tmpPersoner={tmpPersoner}
ident={ident}
identtype={identtype}
/>
<PdlDoedfoedtBarn data={doedfoedtBarn} />
<PdlForeldreBarn data={foreldreBarn} />
<PdlForeldreansvar data={foreldreansvar} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const PdlDataVisning = ({ ident, bankIdBruker, miljoe }: PdlDataVisningPr
offset: [0, -10],
}}
overlayStyle={{ opacity: 1 }}
destroyTooltipOnHide={{ keepParent: false }}
>
<div className="miljoe-knapp">PDL</div>
</DollyTooltip>
Expand All @@ -62,6 +63,7 @@ export const PdlDataVisning = ({ ident, bankIdBruker, miljoe }: PdlDataVisningPr
offset: [0, -10],
}}
overlayStyle={{ opacity: 1 }}
destroyTooltipOnHide={{ keepParent: false }}
>
<div className="miljoe-knapp">Q1</div>
</DollyTooltip>
Expand Down

0 comments on commit b31e56d

Please sign in to comment.