mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-10 18:21:34 +03:00
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:
parent
7834adcf13
commit
e53d2360ec
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user