Skip to content

Commit c350523

Browse files
committed
Refactor Navbar component to use LogoutButton component
1 parent 8acd140 commit c350523

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

frontend/src/components/Navbar.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import Link from "next/link";
22
import { Input } from "@/components/ui/input";
3-
import { Flame, LogOut } from "lucide-react";
4-
import { Button } from "@/components/ui/button";
3+
import { Flame } from "lucide-react";
54
import UserAvatar from "@/components/UserAvatar";
5+
import LogoutButton from "./LogoutButton";
66

77
export default function Navbar() {
88
const links: NavLinkProps[] = [{ label: "Dashboard", href: "/dashboard" }];
@@ -73,9 +73,7 @@ function NavUserDetails() {
7373
/>
7474
<small className="whitespace-nowrap">10 days</small>
7575
<UserAvatar src={"https://nonexistent-link"} name="Jm San Diego" />
76-
<Button variant="ghost" className="p-2">
77-
<LogOut size={20} />
78-
</Button>
76+
<LogoutButton />
7977
</div>
8078
);
8179
}

0 commit comments

Comments
 (0)