This commit is contained in:
Michael Telatynski 2021-07-26 12:41:52 +01:00
parent 2114e854f9
commit 737aa1c55d
2 changed files with 21 additions and 12 deletions

View File

@ -417,10 +417,13 @@ const AddExistingToSpaceDialog: React.FC<IProps> = ({ space, onCreateRoomClick,
onFinished={onFinished} onFinished={onFinished}
footerPrompt={<> footerPrompt={<>
<div>{ _t("Want to add a new room instead?") }</div> <div>{ _t("Want to add a new room instead?") }</div>
<AccessibleButton kind="link" onClick={() => { <AccessibleButton
onCreateRoomClick(); kind="link"
onFinished(); onClick={() => {
}}> onCreateRoomClick();
onFinished();
}}
>
{ _t("Create a new room") } { _t("Create a new room") }
</AccessibleButton> </AccessibleButton>
</>} </>}
@ -429,10 +432,13 @@ const AddExistingToSpaceDialog: React.FC<IProps> = ({ space, onCreateRoomClick,
spacesRenderer={() => ( spacesRenderer={() => (
<div className="mx_AddExistingToSpace_section"> <div className="mx_AddExistingToSpace_section">
<h3>{ _t("Spaces") }</h3> <h3>{ _t("Spaces") }</h3>
<AccessibleButton kind="link" onClick={() => { <AccessibleButton
onAddSubspaceClick(); kind="link"
onFinished(); onClick={() => {
}}> onAddSubspaceClick();
onFinished();
}}
>
{ _t("Adding spaces has moved.") } { _t("Adding spaces has moved.") }
</AccessibleButton> </AccessibleButton>
</div> </div>

View File

@ -160,10 +160,13 @@ const CreateSubspaceDialog: React.FC<IProps> = ({ space, onAddExistingSpaceClick
<div className="mx_CreateSubspaceDialog_footer"> <div className="mx_CreateSubspaceDialog_footer">
<div className="mx_CreateSubspaceDialog_footer_prompt"> <div className="mx_CreateSubspaceDialog_footer_prompt">
<div>{ _t("Want to add an existing space instead?") }</div> <div>{ _t("Want to add an existing space instead?") }</div>
<AccessibleButton kind="link" onClick={() => { <AccessibleButton
onAddExistingSpaceClick(); kind="link"
onFinished(); onClick={() => {
}}> onAddExistingSpaceClick();
onFinished();
}}
>
{ _t("Add existing space") } { _t("Add existing space") }
</AccessibleButton> </AccessibleButton>
</div> </div>