mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
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.") }
|
||||
</div>
|
||||
|
||||
<SpacePublicShare space={space} onFinished={onFinished} />
|
||||
<SpacePublicShare space={space} />
|
||||
|
||||
<div className="mx_SpaceRoomView_buttons">
|
||||
<AccessibleButton kind="primary" onClick={onFinished}>
|
||||
|
|
|
@ -26,7 +26,7 @@ import {showRoomInviteDialog} from "../../../RoomInvite";
|
|||
|
||||
interface IProps {
|
||||
space: Room;
|
||||
onFinished(): void;
|
||||
onFinished?(): void;
|
||||
}
|
||||
|
||||
const SpacePublicShare = ({ space, onFinished }: IProps) => {
|
||||
|
@ -54,7 +54,7 @@ const SpacePublicShare = ({ space, onFinished }: IProps) => {
|
|||
className="mx_SpacePublicShare_inviteButton"
|
||||
onClick={() => {
|
||||
showRoomInviteDialog(space.roomId);
|
||||
onFinished();
|
||||
if (onFinished) onFinished();
|
||||
}}
|
||||
>
|
||||
<h3>{ _t("Invite people") }</h3>
|
||||
|
|
Loading…
Reference in a new issue