Skip to content

Commit

Permalink
Add handler to login button
Browse files Browse the repository at this point in the history
  • Loading branch information
cskrov committed Nov 26, 2020
1 parent 3b039d2 commit 88258c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/logout-warning/logout-warning.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
import nb from 'dayjs/locale/nb';
import { LoginButton } from '../styled-components/login-button';
import { Normaltekst } from 'nav-frontend-typografi';
import { login } from '../user/login';

dayjs.extend(utc);
dayjs.extend(relative);
Expand Down Expand Up @@ -56,7 +57,7 @@ const LogoutWarning = () => {
return (
<Veilederpanel fargetema="advarsel" svg={<VeilederAdvarsel />}>
<Normaltekst>Du har blitt logget ut. For å fortsette trenger du bare å logge inn igjen.</Normaltekst>
<LoginButton>Logg inn</LoginButton>
<LoginButton onClick={login}>Logg inn</LoginButton>
</Veilederpanel>
);
}
Expand Down

0 comments on commit 88258c2

Please sign in to comment.