🎨 style(headerComponent): add cursor-pointer class to admin page and logout menu items for better user experience
This commit is contained in:
parent
a9f3588651
commit
d16456d795
1 changed files with 5 additions and 1 deletions
|
|
@ -149,11 +149,15 @@ export default function Header(): JSX.Element {
|
|||
<DropdownMenuLabel>My Account</DropdownMenuLabel>
|
||||
<DropdownMenuSeparator />
|
||||
{isAdmin && (
|
||||
<DropdownMenuItem onClick={() => navigate("/admin")}>
|
||||
<DropdownMenuItem
|
||||
className="cursor-pointer"
|
||||
onClick={() => navigate("/admin")}
|
||||
>
|
||||
Admin Page
|
||||
</DropdownMenuItem>
|
||||
)}
|
||||
<DropdownMenuItem
|
||||
className="cursor-pointer"
|
||||
onClick={() => {
|
||||
logout();
|
||||
navigate("/login");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue