Skip to content

Commit 85eda45

Browse files
committed
Add and navigate a edit profile button on chat section page
1 parent c2b4468 commit 85eda45

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

app/components/random_chat_components/Sidebar.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
"use client";
22
import React, { useState } from "react";
33
import { IoChatbubbleEllipsesOutline } from "react-icons/io5";
4-
import { FaUserFriends } from "react-icons/fa";
4+
import { FaUserFriends, FaEdit } from "react-icons/fa";
5+
import { useRouter } from "next/navigation";
56

67
const Sidebar = () => {
78
const [activeTab, setActiveTab] = useState("chat");
9+
const router = useRouter();
810

911
return (
1012
<div className="fixed h-[100vh] px-3 py-4 bg-[#25262D] top-0 w-[25%]">
@@ -31,6 +33,15 @@ const Sidebar = () => {
3133
Friends
3234
</button>
3335
</div>
36+
<button
37+
className="fixed flex bottom-0 left-0 w-[25%] mx-auto p-2 rounded bg-black text-gray-50 hover:text-black hover:bg-gray-50"
38+
onClick={() => router.push("/voyager/my_account")}
39+
>
40+
<span className="ml-2">Edit Interest and Location</span>
41+
<span className="ml-5 font-medium text-xl">
42+
<FaEdit />
43+
</span>
44+
</button>
3445
</div>
3546
);
3647
};

0 commit comments

Comments
 (0)