add link to profile edit page

This commit is contained in:
Eric Ge 2025-03-31 21:24:46 -04:00
parent bdc6600a3f
commit 0c5f2decdd

View File

@ -1,5 +1,6 @@
import { useState } from "react";
import { signOut } from "@/app/auth/actions";
import Link from "next/link";
interface UserProfileProps {
name: string;
@ -24,6 +25,12 @@ export const UserProfile = ({ name, email, setLoading }: UserProfileProps) => {
</span>
<span className="text-xs text-gray-500">{email}</span>
</div>
<Link
href="/profile/edit"
className="text-purple-600 font-semibold text-xs hover:underline mt-1"
>
Edit profile
</Link>
<button
onClick={(event) => handleClick(event, setLoading)}
className="text-red-600 font-semibold text-xs hover:underline mt-1"