Skip to content

Commit

Permalink
Add and navigate a edit profile button on chat section page
Browse files Browse the repository at this point in the history
  • Loading branch information
chauhanshilpa committed May 15, 2024
1 parent c2b4468 commit 85eda45
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion app/components/random_chat_components/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
"use client";
import React, { useState } from "react";
import { IoChatbubbleEllipsesOutline } from "react-icons/io5";
import { FaUserFriends } from "react-icons/fa";
import { FaUserFriends, FaEdit } from "react-icons/fa";
import { useRouter } from "next/navigation";

const Sidebar = () => {
const [activeTab, setActiveTab] = useState("chat");
const router = useRouter();

return (
<div className="fixed h-[100vh] px-3 py-4 bg-[#25262D] top-0 w-[25%]">
Expand All @@ -31,6 +33,15 @@ const Sidebar = () => {
Friends
</button>
</div>
<button
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"
onClick={() => router.push("/voyager/my_account")}
>
<span className="ml-2">Edit Interest and Location</span>
<span className="ml-5 font-medium text-xl">
<FaEdit />
</span>
</button>
</div>
);
};
Expand Down

0 comments on commit 85eda45

Please sign in to comment.