mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 13:54:20 +03:00
Merge pull request #3756 from urbit/mp/groups/invite-prompt
groups: new channel only shows ship search at home
This commit is contained in:
commit
af990fb56c
@ -176,6 +176,7 @@ export function GroupsPane(props: GroupsPaneProps) {
|
||||
groups={groups}
|
||||
group={groupPath}
|
||||
contacts={props.contacts}
|
||||
workspace={workspace}
|
||||
/>
|
||||
{popovers(routeProps, baseUrl)}
|
||||
</Skeleton>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user