Add btn and hotkey to close room settings (#269)

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2022-01-30 10:05:46 +05:30
parent f310196937
commit 0c32d5302c
4 changed files with 58 additions and 6 deletions

View file

@ -127,7 +127,8 @@ function SpaceSettings() {
className="space-settings"
title={(
<Text variant="s1" weight="medium" primary>
{twemojify(isOpen ? `${room.name} - space settings` : 'Space settings')}
{isOpen && twemojify(room.name)}
<span style={{ color: 'var(--tc-surface-low)' }}> space settings</span>
</Text>
)}
contentOptions={<IconButton src={CrossIC} onClick={requestClose} tooltip="Close" />}