Add option to create room/space

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura
2022-02-26 21:00:52 +05:30
parent 2eee3736df
commit 79afc7649d
10 changed files with 365 additions and 208 deletions

View File

@@ -38,20 +38,20 @@ function HomeSpaceOptions({ spaceId, afterOptionSelect }) {
return (
<>
<MenuHeader>Add rooms or spaces</MenuHeader>
<MenuItem
iconSrc={HashPlusIC}
onClick={() => { afterOptionSelect(); openCreateRoom(); }}
disabled={!canManage}
>
Create new room
</MenuItem>
<MenuItem
iconSrc={SpacePlusIC}
onClick={() => { afterOptionSelect(); }}
onClick={() => { afterOptionSelect(); openCreateRoom(true, spaceId); }}
disabled={!canManage}
>
Create new space
</MenuItem>
<MenuItem
iconSrc={HashPlusIC}
onClick={() => { afterOptionSelect(); openCreateRoom(false, spaceId); }}
disabled={!canManage}
>
Create new room
</MenuItem>
{ !spaceId && (
<MenuItem
iconSrc={HashGlobeIC}