Re-arrange general room settings

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2022-01-16 17:55:00 +05:30
parent dcef08009d
commit a83b875b66

View file

@ -63,10 +63,6 @@ function GeneralSettings({ roomId }) {
return (
<>
<div className="room-settings__card">
<MenuHeader>Notification (Changing this will only affect you)</MenuHeader>
<RoomNotification roomId={roomId} />
</div>
<div className="room-settings__card">
<MenuItem
disabled={!canInvite}
@ -75,7 +71,21 @@ function GeneralSettings({ roomId }) {
>
Invite
</MenuItem>
<MenuItem variant="danger" onClick={() => roomActions.leave(roomId)} iconSrc={LeaveArrowIC}>Leave</MenuItem>
<MenuItem
variant="danger"
onClick={() => {
if (confirm('Are you really want to leave this room?')) {
roomActions.leave(roomId);
}
}}
iconSrc={LeaveArrowIC}
>
Leave
</MenuItem>
</div>
<div className="room-settings__card">
<MenuHeader>Notification (Changing this will only affect you)</MenuHeader>
<RoomNotification roomId={roomId} />
</div>
<div className="room-settings__card">
<MenuHeader>Room visibility (who can join)</MenuHeader>