Skip to content

Commit 5dad4c4

Browse files
committed
Add logout under profile dropdown
1 parent 9a80388 commit 5dad4c4

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

peerprep/components/navbar/ProfileDropdown.tsx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { Menu, MenuButton, MenuItem, MenuItems } from "@headlessui/react";
44
import Image from "next/image";
55
import React from "react";
6+
import Link from "next/link";
67

78
export const ProfileDropdown = () => {
89
return (
@@ -27,28 +28,28 @@ export const ProfileDropdown = () => {
2728
className="absolute right-0 z-10 mt-2 w-48 origin-top-right rounded-md bg-gray-1 py-1 shadow-lg ring-1 ring-black ring-opacity-5 transition focus:outline-none data-[closed]:scale-95 data-[closed]:transform data-[closed]:opacity-0 data-[enter]:duration-100 data-[leave]:duration-75 data-[enter]:ease-out data-[leave]:ease-in"
2829
>
2930
<MenuItem>
30-
<a
31+
<Link
3132
href="#"
3233
className="block px-4 py-2 text-sm data-[focus]:bg-gray-2"
3334
>
34-
Your Profile
35-
</a>
35+
Your Profile (Coming Soon)
36+
</Link>
3637
</MenuItem>
3738
<MenuItem>
38-
<a
39+
<Link
3940
href="#"
4041
className="block px-4 py-2 text-sm data-[focus]:bg-gray-2"
4142
>
42-
Settings
43-
</a>
43+
Settings (Coming Soon)
44+
</Link>
4445
</MenuItem>
4546
<MenuItem>
46-
<a
47-
href="#"
47+
<Link
48+
href="/api/internal/auth/expire"
4849
className="block px-4 py-2 text-sm data-[focus]:bg-gray-2"
4950
>
5051
Sign out
51-
</a>
52+
</Link>
5253
</MenuItem>
5354
</MenuItems>
5455
</Menu>

0 commit comments

Comments
 (0)