landscape: bring placeholder group joins to parity
Fixes urbit/landscape#478
@@ -71,20 +71,15 @@ export function GroupLink(
pr="2"
onClick={showModal}
cursor='pointer'
+ opacity={preview ? '1' : '0.6'}
>
- {preview ? (
- <>
- <MetadataIcon height={6} width={6} metadata={preview.metadata} />
+ <MetadataIcon height={6} width={6} metadata={preview ? preview.metadata : {"color": "0x0"}} />
<Col>
- <Text ml="2" fontWeight="medium">
- {preview.metadata.title}
+ <Text ml="2" fontWeight="medium" mono={!preview}>
+ {preview ? preview.metadata.title : name}
</Text>
- <Text pt='1' ml='2'>{preview.members} members</Text>
+ <Text pt='1' ml='2'>{preview ? preview.members : "Unknown"} members</Text>
</Col>
- </>
- ) : (
- <Text mono>{name}</Text>
- )}
</Row>
</Box>
);
