Rename toggle to view
This commit is contained in:
parent
0e5e48584f
commit
8a1180bd50
2 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue