Tweak behaviour during space creation
This commit is contained in:
parent
a2a1e37fa3
commit
3df3baea14
2 changed files with 3 additions and 3 deletions
|
@ -430,7 +430,7 @@ const SpaceSetupPublicShare = ({ space, onFinished }) => {
|
||||||
{ _t("It's just you at the moment, it will be even better with others.") }
|
{ _t("It's just you at the moment, it will be even better with others.") }
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<SpacePublicShare space={space} onFinished={onFinished} />
|
<SpacePublicShare space={space} />
|
||||||
|
|
||||||
<div className="mx_SpaceRoomView_buttons">
|
<div className="mx_SpaceRoomView_buttons">
|
||||||
<AccessibleButton kind="primary" onClick={onFinished}>
|
<AccessibleButton kind="primary" onClick={onFinished}>
|
||||||
|
|
|
@ -26,7 +26,7 @@ import {showRoomInviteDialog} from "../../../RoomInvite";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
space: Room;
|
space: Room;
|
||||||
onFinished(): void;
|
onFinished?(): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
const SpacePublicShare = ({ space, onFinished }: IProps) => {
|
const SpacePublicShare = ({ space, onFinished }: IProps) => {
|
||||||
|
@ -54,7 +54,7 @@ const SpacePublicShare = ({ space, onFinished }: IProps) => {
|
||||||
className="mx_SpacePublicShare_inviteButton"
|
className="mx_SpacePublicShare_inviteButton"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
showRoomInviteDialog(space.roomId);
|
showRoomInviteDialog(space.roomId);
|
||||||
onFinished();
|
if (onFinished) onFinished();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<h3>{ _t("Invite people") }</h3>
|
<h3>{ _t("Invite people") }</h3>
|
||||||
|
|
Loading…
Reference in a new issue