mirror of https://github.com/vector-im/riot-web
Rename toggle to view
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…
Reference in New Issue