Skip to content

Commit 0dfaed7

Browse files
committed
removed bugs in the followers ListModel component
1 parent 749b175 commit 0dfaed7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

frontend/src/components/ListModal/ListModal.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ const ListModal = ({ data, isOpen, onClose }) => {
2727
<div
2828
key={index}
2929
className="listItem"
30-
onClick={() => handleClick(item.username)}
30+
onClick={() => handleClick(item.follower_username)}
3131
>
3232
<img src={item.avatar_url} alt={item.login} className="avatar" />
33-
<h1 className="username"> @ {item.username}</h1>
33+
<h1 className="username"> @ {item.follower_username}</h1>
3434
</div>
3535
))}
3636
</div>

frontend/src/pages/Home/Home.jsx

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React from "react";
22
import Search from "../../components/search/Search";
33
import "./Home.css";
44
import Logo from "../../components/Logo/Logo";
5-
import User from "../../components/User/User";
65
const Home = () => {
76
return (
87
<>

0 commit comments

Comments
 (0)