File tree Expand file tree Collapse file tree
client/views/room/contextualBar/RoomMembers/List Expand file tree Collapse file tree Original file line number Diff line number Diff 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} ;
You can’t perform that action at this time.
0 commit comments