We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 458ad90 commit 12d4d9eCopy full SHA for 12d4d9e
1 file changed
components/logout-button.tsx
@@ -1,5 +1,6 @@
1
"use client";
2
3
+import { LogOut } from "lucide-react";
4
import { useRouter } from "next/navigation";
5
6
import { Button } from "@/components/ui/button";
@@ -16,5 +17,14 @@ export function LogoutButton() {
16
17
router.refresh();
18
};
19
- return <Button onClick={logout}>Logout</Button>;
20
+ return (
21
+ <Button
22
+ onClick={logout}
23
+ aria-label="Logout"
24
+ className="h-10 w-10 shrink-0 px-0 sm:w-auto sm:px-4"
25
+ >
26
+ <LogOut aria-hidden="true" className="sm:hidden" />
27
+ <span className="hidden sm:inline">Logout</span>
28
+ </Button>
29
+ );
30
}
0 commit comments