Change icon of join public room button

Signed-off-by: ajbura <ajbura@gmail.com>
This commit is contained in:
ajbura 2022-02-07 15:45:57 +05:30
parent c8ae428df8
commit d0e9728c26

View file

@ -23,7 +23,7 @@ import SpaceOptions from '../../molecules/space-options/SpaceOptions';
import PlusIC from '../../../../public/res/ic/outlined/plus.svg'; import PlusIC from '../../../../public/res/ic/outlined/plus.svg';
import HashPlusIC from '../../../../public/res/ic/outlined/hash-plus.svg'; import HashPlusIC from '../../../../public/res/ic/outlined/hash-plus.svg';
import HashSearchIC from '../../../../public/res/ic/outlined/hash-search.svg'; import HashGlobeIC from '../../../../public/res/ic/outlined/hash-globe.svg';
import ChevronBottomIC from '../../../../public/res/ic/outlined/chevron-bottom.svg'; import ChevronBottomIC from '../../../../public/res/ic/outlined/chevron-bottom.svg';
import PinIC from '../../../../public/res/ic/outlined/pin.svg'; import PinIC from '../../../../public/res/ic/outlined/pin.svg';
import PinFilledIC from '../../../../public/res/ic/filled/pin.svg'; import PinFilledIC from '../../../../public/res/ic/filled/pin.svg';
@ -79,28 +79,26 @@ function DrawerHeader({ selectedTab, spaceId }) {
)} )}
{ selectedTab === cons.tabs.DIRECTS && <IconButton onClick={() => openInviteUser()} tooltip="Start DM" src={PlusIC} size="normal" /> } { selectedTab === cons.tabs.DIRECTS && <IconButton onClick={() => openInviteUser()} tooltip="Start DM" src={PlusIC} size="normal" /> }
{ selectedTab !== cons.tabs.DIRECTS && !spaceName && ( { selectedTab !== cons.tabs.DIRECTS && !spaceName && (
<> <ContextMenu
<ContextMenu content={(hideMenu) => (
content={(hideMenu) => ( <>
<> <MenuHeader>Add room</MenuHeader>
<MenuHeader>Add room</MenuHeader> <MenuItem
<MenuItem iconSrc={HashPlusIC}
iconSrc={HashPlusIC} onClick={() => { hideMenu(); openCreateRoom(); }}
onClick={() => { hideMenu(); openCreateRoom(); }} >
> Create new room
Create new room </MenuItem>
</MenuItem> <MenuItem
<MenuItem iconSrc={HashGlobeIC}
iconSrc={HashSearchIC} onClick={() => { hideMenu(); openPublicRooms(); }}
onClick={() => { hideMenu(); openPublicRooms(); }} >
> Join public room
Add public room </MenuItem>
</MenuItem> </>
</> )}
)} render={(toggleMenu) => (<IconButton onClick={toggleMenu} tooltip="Add room" src={PlusIC} size="normal" />)}
render={(toggleMenu) => (<IconButton onClick={toggleMenu} tooltip="Add room" src={PlusIC} size="normal" />)} />
/>
</>
)} )}
</Header> </Header>
); );