Re-arrange general room settings
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
dcef08009d
commit
a83b875b66
1 changed files with 15 additions and 5 deletions
|
@ -63,10 +63,6 @@ function GeneralSettings({ roomId }) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="room-settings__card">
|
|
||||||
<MenuHeader>Notification (Changing this will only affect you)</MenuHeader>
|
|
||||||
<RoomNotification roomId={roomId} />
|
|
||||||
</div>
|
|
||||||
<div className="room-settings__card">
|
<div className="room-settings__card">
|
||||||
<MenuItem
|
<MenuItem
|
||||||
disabled={!canInvite}
|
disabled={!canInvite}
|
||||||
|
@ -75,7 +71,21 @@ function GeneralSettings({ roomId }) {
|
||||||
>
|
>
|
||||||
Invite
|
Invite
|
||||||
</MenuItem>
|
</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>
|
||||||
<div className="room-settings__card">
|
<div className="room-settings__card">
|
||||||
<MenuHeader>Room visibility (who can join)</MenuHeader>
|
<MenuHeader>Room visibility (who can join)</MenuHeader>
|
||||||
|
|
Loading…
Reference in a new issue