Merge pull request #3836 from ryjm/release/next-userspace

landscape: give private groups kicking ability
This commit is contained in:
matildepark 2020-10-29 20:24:37 -04:00 committed by GitHub
commit 44ebeb35b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -348,23 +348,23 @@ function Participant(props: {
{props.role === 'admin' && (
<>
{!isInvite && (
<>
<StatelessAsyncAction onClick={onBan} bg="transparent">
<Text color="red">Ban from {title}</Text>
</StatelessAsyncAction>
<StatelessAsyncAction onClick={onKick} bg="transparent">
<Text color="red">Kick from {title}</Text>
</StatelessAsyncAction>
</>
)}
{role === 'admin' ? (
<StatelessAsyncAction onClick={onDemote} bg="transparent">
Demote from Admin
</StatelessAsyncAction>
) : (
<StatelessAsyncAction onClick={onPromote} bg="transparent">
Promote to Admin
</StatelessAsyncAction>
<>
<StatelessAsyncAction onClick={onKick} bg="transparent">
<Text color="red">Kick from {title}</Text>
</StatelessAsyncAction>
<StatelessAsyncAction onClick={onPromote} bg="transparent">
Promote to Admin
</StatelessAsyncAction>
</>
)}
</>
)}