groups: World Privacy icon fix

Although the bug was poetic, this makes the icon in GroupLink aware of the group's hidden status and surfaces a lock icon in those cases instead of the "public" globe icon.
This commit is contained in:
James Acklin 2021-05-09 13:49:25 -04:00 committed by GitHub
parent 7834adcf13
commit e53d2360ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,11 @@ export function GroupLink(
{preview ?
<>
<Box pr='2' display='flex' alignItems='center'>
<Icon icon='Public' color='gray' mr='1' />
<Icon
icon={preview.metadata.hidden ? 'Locked' : 'Public'}
color='gray'
mr='1'
/>
<Text fontSize='0' color='gray'>
{preview.metadata.hidden ? 'Private' : 'Public'}
</Text>