fix: logout bug
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { MouseEventHandler, useEffect, useState } from "react";
|
||||
import { useSession } from "./Session";
|
||||
import { logout } from "./api";
|
||||
|
||||
interface ContextMenuItem {
|
||||
label: string;
|
||||
@@ -18,7 +17,7 @@ export default function Avatar() {
|
||||
const contextMenuItems: ContextMenuItem[] = [
|
||||
{ label: "View Profile", onClick: () => console.log("View Profile") },
|
||||
{ label: "Edit Profile", onClick: () => console.log("Edit Profile") },
|
||||
{ label: "Logout", onClick: onLogout },
|
||||
{ label: "Logout", onClick: () => onLogout() },
|
||||
];
|
||||
|
||||
const handleMenuClick: MouseEventHandler<HTMLDivElement> = (event) => {
|
||||
|
||||
Reference in New Issue
Block a user