GroupSummary: loosen access

This commit is contained in:
Matilde Park 2021-05-14 12:53:11 -04:00
parent 69572e296f
commit 4a7527b6cc

View File

@ -25,7 +25,7 @@ export function GroupSummary(props: GroupSummaryProps & PropFunc<typeof Col>): R
resource === `/ship/${TUTORIAL_HOST}/${TUTORIAL_GROUP}`, resource === `/ship/${TUTORIAL_HOST}/${TUTORIAL_GROUP}`,
anchorRef anchorRef
); );
const { doCopy, copyDisplay } = useCopy(`web+urbitgraph://group${resource.slice(5)}`, "Copy", "Checkmark"); const { doCopy, copyDisplay } = useCopy(`web+urbitgraph://group${resource?.slice(5)}`, "Copy", "Checkmark");
return ( return (
<Col {...rest} ref={anchorRef} gapY={4} maxWidth={['100%', '288px']}> <Col {...rest} ref={anchorRef} gapY={4} maxWidth={['100%', '288px']}>
<Row gapX={2} width="100%"> <Row gapX={2} width="100%">
@ -44,7 +44,7 @@ export function GroupSummary(props: GroupSummaryProps & PropFunc<typeof Col>): R
overflow="hidden" overflow="hidden"
>{metadata.title} >{metadata.title}
</Text> </Text>
{props.AllowCopy && {props?.AllowCopy &&
<Icon <Icon
color="gray" color="gray"
icon={props?.locked ? "Locked" : copyDisplay as IconRef} icon={props?.locked ? "Locked" : copyDisplay as IconRef}