Skip to content

Commit 5474f8e

Browse files
authored
[FIX] Unnecessary space on members list footer (RocketChat#22514)
1 parent 2851b74 commit 5474f8e

1 file changed

Lines changed: 18 additions & 17 deletions

File tree

client/views/room/contextualBar/RoomMembers/List/RoomMembers.js

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -129,23 +129,24 @@ const RoomMembers = ({
129129
)}
130130
</Box>
131131
</VerticalBar.Content>
132-
133-
<VerticalBar.Footer>
134-
<ButtonGroup stretch>
135-
{onClickInvite && (
136-
<Button onClick={onClickInvite} width='50%'>
137-
<Icon name='link' size='x20' mie='x4' />
138-
{t('Invite_Link')}
139-
</Button>
140-
)}
141-
{onClickAdd && (
142-
<Button onClick={onClickAdd} width='50%' primary>
143-
<Icon name='user-plus' size='x20' mie='x4' />
144-
{t('Add')}
145-
</Button>
146-
)}
147-
</ButtonGroup>
148-
</VerticalBar.Footer>
132+
{(onClickInvite || onClickAdd) && (
133+
<VerticalBar.Footer>
134+
<ButtonGroup stretch>
135+
{onClickInvite && (
136+
<Button onClick={onClickInvite} width='50%'>
137+
<Icon name='link' size='x20' mie='x4' />
138+
{t('Invite_Link')}
139+
</Button>
140+
)}
141+
{onClickAdd && (
142+
<Button onClick={onClickAdd} width='50%' primary>
143+
<Icon name='user-plus' size='x20' mie='x4' />
144+
{t('Add')}
145+
</Button>
146+
)}
147+
</ButtonGroup>
148+
</VerticalBar.Footer>
149+
)}
149150
</>
150151
);
151152
};

0 commit comments

Comments
 (0)