mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-13 10:40:28 +03:00
add mobile context menu
This commit is contained in:
parent
7cd2a4a143
commit
69c916f1b8
1 changed files with 15 additions and 0 deletions
|
|
@ -516,6 +516,21 @@ function SpaceTab({
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
{createPortal(
|
||||||
|
<MobileContextMenu
|
||||||
|
onClose={() => {
|
||||||
|
setMobileSheetOpen(false);
|
||||||
|
}}
|
||||||
|
isOpen={isMobileSheetOpen}
|
||||||
|
>
|
||||||
|
<SpaceMenu
|
||||||
|
room={space}
|
||||||
|
requestClose={() => setMobileSheetOpen(false)}
|
||||||
|
onUnpin={onUnpin}
|
||||||
|
/>
|
||||||
|
</MobileContextMenu>,
|
||||||
|
document.body
|
||||||
|
)}
|
||||||
</SidebarItem>
|
</SidebarItem>
|
||||||
)}
|
)}
|
||||||
</RoomUnreadProvider>
|
</RoomUnreadProvider>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue