Skip to content

Commit

Permalink
Fix login button
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Oct 9, 2023
1 parent 7925f82 commit 874ca57
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 874ca57

Please sign in to comment.