mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-09 14:00:15 -04:00
add link to profile edit page
This commit is contained in:
parent
bdc6600a3f
commit
0c5f2decdd
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user