Merge pull request #3756 from urbit/mp/groups/invite-prompt

groups: new channel only shows ship search at home
This commit is contained in:
matildepark 2020-10-19 22:09:01 -04:00 committed by GitHub
commit af990fb56c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -176,6 +176,7 @@ export function GroupsPane(props: GroupsPaneProps) {
groups={groups}
group={groupPath}
contacts={props.contacts}
workspace={workspace}
/>
{popovers(routeProps, baseUrl)}
</Skeleton>

View File

@ -45,7 +45,7 @@ interface NewChannelProps {
export function NewChannel(props: NewChannelProps & RouteComponentProps) {
const { history, api, group } = props;
const { history, api, group, workspace } = props;
const waiter = useWaitForProps(props, 5000);
@ -146,12 +146,13 @@ export function NewChannel(props: NewChannelProps & RouteComponentProps) {
caption="What's your channel about?"
placeholder="Channel description"
/>
{(workspace?.type === 'home') &&
<ShipSearch
groups={props.groups}
contacts={props.contacts}
id="ships"
label="Invitees"
/>
/>}
<Box justifySelf="start">
<AsyncButton
primary