Skip to content

Commit

Permalink
Fiks varsellenke
Browse files Browse the repository at this point in the history
  • Loading branch information
johatr committed Nov 21, 2024
1 parent 3666462 commit d44b89b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/moduler/dialog/DialogLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useNavigate } from 'react-router-dom';
import { useErVeileder } from '../../Provider';
import { useRoutes } from '../../routing/useRoutes';
import { byttTilDialogFlate, getDialogLenke } from './DialogFlateUtils';
import { Link } from '@navikt/ds-react';

interface Props {
className?: string;
Expand Down Expand Up @@ -32,9 +33,9 @@ const LenkeTilDialog = (props: Props) => {
}

return (
<a href={getDialogLenke({ erVeileder, aktivitetId, dialogId })} onClick={internalOnClick} className={className}>
<Link href={getDialogLenke({ erVeileder, aktivitetId, dialogId })} onClick={internalOnClick} className={className}>
{children}
</a>
</Link>
);
};

Expand Down
6 changes: 3 additions & 3 deletions src/moduler/varslinger/VeilederVarsel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ const VeilederVarsel = (props: Props) => {

return (
<div className="container">
<Alert variant="warning" className="mb-5">
<Alert variant="warning" className="my-4">
<BodyShort>
Nav har sendt varsel {dato}{' '}
<LenkeTilDialog dialogId={tilhorendeDialogId}>Les meldingen</LenkeTilDialog>
Nav har sendt varsel {dato}.{' '}
<LenkeTilDialog dialogId={tilhorendeDialogId}>Les meldingen.</LenkeTilDialog>
</BodyShort>
</Alert>
</div>
Expand Down

0 comments on commit d44b89b

Please sign in to comment.