You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Tweak behaviour during space creation
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user