Skip to content

Commit

Permalink
Merge pull request #10 from chrisburr/fix-login
Browse files Browse the repository at this point in the history
Fix login button
  • Loading branch information
aldbr authored Oct 9, 2023
2 parents 7925f82 + 874ca57 commit 204b664
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/ui/LoginButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import React from "react";
*/
export function LoginButton() {
const { accessTokenPayload } = useOidcAccessToken();
const { logout, isAuthenticated } = useOidc();
const { login, logout, isAuthenticated } = useOidc();

const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);
const open = Boolean(anchorEl);
Expand All @@ -43,8 +43,7 @@ export function LoginButton() {
"&:hover": { bgcolor: deepOrange[500] },
}}
variant="contained"
component={NextLink}
href="/dashboard"
onClick={() => login()}
>
Login
</Button>
Expand Down

0 comments on commit 204b664

Please sign in to comment.