mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 10:02:47 +03:00
GroupSummary: loosen access
This commit is contained in:
parent
69572e296f
commit
4a7527b6cc
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user