Rename toggle to view

pull/21833/head
J. Ryan Stinnett 2021-04-12 13:19:13 +01:00
parent 0e5e48584f
commit 8a1180bd50
2 changed files with 5 additions and 5 deletions

View File

@ -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;
}
}

View File

@ -38,7 +38,7 @@ export default class InviteReason extends React.PureComponent<IProps, IState> {
};
}
onToggleClick = () => {
onViewClick = () => {
this.setState({
hidden: false,
});
@ -52,8 +52,8 @@ export default class InviteReason extends React.PureComponent<IProps, IState> {
return <div className={classes}>
<div className="mx_InviteReason_reason">{this.props.reason}</div>
<div className="mx_InviteReason_toggle"
onClick={this.onToggleClick}
<div className="mx_InviteReason_view"
onClick={this.onViewClick}
>
{_t("View message")}
</div>