Skip to content

Instantly share code, notes, and snippets.

@sendbird-community
Created April 27, 2023 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sendbird-community/bce04ecfd11e4915f2e8547d42256e90 to your computer and use it in GitHub Desktop.
Save sendbird-community/bce04ecfd11e4915f2e8547d42256e90 to your computer and use it in GitHub Desktop.
return (
<div className="bg-modal" style={{ display: "flex" }}>
<div className="modal-content users_list">
<div
className="users_list_close_btn"
onClick={() => setShowUsersList(false)}
>
+
</div>
<h3 id="users_list_title">
Select a user to check their online status
</h3>
<form
onSubmit={(e) => checkUserStatus(e)}
onChange={(e) => selectedOption(e)}
id="users-list-form"
>
{users.map((user) => (
<div
key={user.userId}
className="sendbird-users-list-wrapper"
>
<label htmlFor={user.userId} key={user.userId} id="user-label">
{user.nickname}
</label>
<input
type="radio"
id={user.userId}
name="user"
value={user.nickname}
/>
<br></br>
</div>
))}
<input type="submit" value="Submit" id="form-submit-buttton"/>
</form>
</div>
</div>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment