From 8a1180bd500f6e1479818c145e9233879633cc80 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Mon, 12 Apr 2021 13:19:13 +0100 Subject: [PATCH] Rename toggle to view --- res/css/views/elements/_InviteReason.scss | 4 ++-- src/components/views/elements/InviteReason.tsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/res/css/views/elements/_InviteReason.scss b/res/css/views/elements/_InviteReason.scss index b11acf4efb..04b157640f 100644 --- a/res/css/views/elements/_InviteReason.scss +++ b/res/css/views/elements/_InviteReason.scss @@ -22,7 +22,7 @@ limitations under the License. visibility: visible; } - .mx_InviteReason_toggle { + .mx_InviteReason_view { display: none; position: absolute; inset: 0; @@ -48,7 +48,7 @@ limitations under the License. visibility: hidden; } - .mx_InviteReason_toggle { + .mx_InviteReason_view { display: flex; } } diff --git a/src/components/views/elements/InviteReason.tsx b/src/components/views/elements/InviteReason.tsx index c6d190dc75..ddce7552ed 100644 --- a/src/components/views/elements/InviteReason.tsx +++ b/src/components/views/elements/InviteReason.tsx @@ -38,7 +38,7 @@ export default class InviteReason extends React.PureComponent { }; } - onToggleClick = () => { + onViewClick = () => { this.setState({ hidden: false, }); @@ -52,8 +52,8 @@ export default class InviteReason extends React.PureComponent { return
{this.props.reason}
-
{_t("View message")}