Skip to content

Commit

Permalink
Update AddFriendModal.jsx
Browse files Browse the repository at this point in the history
Now, we are using username to do the search
  • Loading branch information
joyc7 committed Nov 28, 2023
1 parent 3ea9076 commit ebd3654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front-end/src/components/AddFriendModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function AddFriendModal({ showModal, onClose }) {
<div className="modal-content">
<span className="close" onClick={onClose}>&times;</span>
<h2>Add a new friend</h2>
<input type="text" placeholder="Username or Email" className='input-content'/>
<input type="text" placeholder="Enter username" className='input-content'/>
<button onClick={handleSearchClick}>Search</button>
{loading && <div>Loading...</div>}
{userData && (
Expand Down

0 comments on commit ebd3654

Please sign in to comment.