Skip to content

Commit

Permalink
Legg til infoboks om hvilke varsler vi viser
Browse files Browse the repository at this point in the history
  • Loading branch information
LudvigHz committed Sep 4, 2024
1 parent a2c7020 commit 2a051ab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/personside/infotabs/varsel/Varsler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Element } from 'nav-frontend-typografi';
import { UnifiedVarsel } from '../../../../models/varsel';
import Panel from 'nav-frontend-paneler';
import Varsel from './Varsel';
import { Alert } from '@navikt/ds-react';

interface Props {
varsler: Array<UnifiedVarsel>;
Expand Down Expand Up @@ -37,6 +38,7 @@ const ListStyle = styled.ol`
> * {
margin-top: 0.5rem;
}
margin-bottom: 1rem;
`;

function Varsler(props: Props) {
Expand All @@ -53,6 +55,11 @@ function Varsler(props: Props) {
<Varsel key={index} varsel={varsel} />
))}
</ListStyle>
<Alert variant="info">
Varsler vises kun ett år tilbake i tid.
<br />
Dersom man trenger å se informasjon om eldre varsler kan man lage en sak i porten for manuell uthenting.
</Alert>
</>
);
}
Expand Down

0 comments on commit 2a051ab

Please sign in to comment.