mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-17 18:32:20 +02:00
Rename toggle to view
This commit is contained in:
parent
b3706b682e
commit
19d7ccac07
@ -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…
x
Reference in New Issue
Block a user