-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOriginal_ProfileLeftNav.js
More file actions
42 lines (38 loc) · 1.07 KB
/
Original_ProfileLeftNav.js
File metadata and controls
42 lines (38 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import "./ProfileLeftNav.css";
import Union from "../assets/Union.png";
const MENU_ITEMS = [
{ id: 1, name: "Study Details" },
{ id: 2, name: "Payments" },
{ id: 3, name: "Account Settings" },
{ id: 4, name: "Security" },
{ id: 5, name: "Manage data access requests" },
];
function ProfileLeftNav({ handleSettingClick, selectedMenu }) {
return (
<div>
<h2 id="profileHeader" style={{ color: "white", marginLeft: "25px" }}>
<img
src={Union}
alt="Settings Icon"
style={{ marginRight: "10px", position: "absolute", left: "35px" }}
/>
Manage Account
</h2>
<hr className="ProfileHr" />
<ul className="ProfileLeftNav" role="listbox">
{MENU_ITEMS.map((item) => (
<li
key={item.id}
role="option"
value={item.id}
onClick={(e) => handleSettingClick(e)}
className={selectedMenu === item.id ? "greenBack" : ""}
>
{item.name}
</li>
))}
</ul>
</div>
);
}
export default ProfileLeftNav;