File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1
1
"use client" ;
2
2
import React , { useState } from "react" ;
3
3
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" ;
5
6
6
7
const Sidebar = ( ) => {
7
8
const [ activeTab , setActiveTab ] = useState ( "chat" ) ;
9
+ const router = useRouter ( ) ;
8
10
9
11
return (
10
12
< div className = "fixed h-[100vh] px-3 py-4 bg-[#25262D] top-0 w-[25%]" >
@@ -31,6 +33,15 @@ const Sidebar = () => {
31
33
Friends
32
34
</ button >
33
35
</ 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 >
34
45
</ div >
35
46
) ;
36
47
} ;
You can’t perform that action at this time.
0 commit comments