From a89f61a3578c770361ee21f86de177bf7ef266cf Mon Sep 17 00:00:00 2001 From: David Langley Date: Fri, 13 Sep 2024 14:48:48 +0100 Subject: [PATCH] Add error text and title with server name --- src/components/structures/auth/Registration.tsx | 15 +++++++++------ src/i18n/strings/en_EN.json | 1 + 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/components/structures/auth/Registration.tsx b/src/components/structures/auth/Registration.tsx index f2a04d00b4..2dc9125362 100644 --- a/src/components/structures/auth/Registration.tsx +++ b/src/components/structures/auth/Registration.tsx @@ -741,7 +741,14 @@ export default class Registration extends React.Component { ); } else if (this.props.mobileRegister) { - body = this.renderRegisterComponent(); + body = ( + +

{_t("auth|mobile_create_account_title", { hsName: this.props.serverConfig.hsName })}

+ {errorText} + {serverDeadSection} + {this.renderRegisterComponent()} +
+ ); } else { body = ( @@ -772,11 +779,7 @@ export default class Registration extends React.Component { ); } if (this.props.mobileRegister) { - return ( - -
{body}
-
- ); + return
{body}
; } return ( diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 21addb3b98..2eacd48d87 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -229,6 +229,7 @@ }, "misconfigured_body": "Ask your %(brand)s admin to check your config for incorrect or duplicate entries.", "misconfigured_title": "Your %(brand)s is misconfigured", + "mobile_create_account_title": "You're about to create an account on %(hsName)s", "msisdn_field_description": "Other users can invite you to rooms using your contact details", "msisdn_field_label": "Phone", "msisdn_field_number_invalid": "That phone number doesn't look quite right, please check and try again",