mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-20 10:30:16 -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 { useState } from "react";
|
||||||
import { signOut } from "@/app/auth/actions";
|
import { signOut } from "@/app/auth/actions";
|
||||||
|
import Link from "next/link";
|
||||||
|
|
||||||
interface UserProfileProps {
|
interface UserProfileProps {
|
||||||
name: string;
|
name: string;
|
||||||
|
@ -24,6 +25,12 @@ export const UserProfile = ({ name, email, setLoading }: UserProfileProps) => {
|
||||||
</span>
|
</span>
|
||||||
<span className="text-xs text-gray-500">{email}</span>
|
<span className="text-xs text-gray-500">{email}</span>
|
||||||
</div>
|
</div>
|
||||||
|
<Link
|
||||||
|
href="/profile/edit"
|
||||||
|
className="text-purple-600 font-semibold text-xs hover:underline mt-1"
|
||||||
|
>
|
||||||
|
Edit profile
|
||||||
|
</Link>
|
||||||
<button
|
<button
|
||||||
onClick={(event) => handleClick(event, setLoading)}
|
onClick={(event) => handleClick(event, setLoading)}
|
||||||
className="text-red-600 font-semibold text-xs hover:underline mt-1"
|
className="text-red-600 font-semibold text-xs hover:underline mt-1"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user