mirror of https://github.com/vector-im/riot-web
Rename toggle to view
parent
0e5e48584f
commit
8a1180bd50
|
@ -22,7 +22,7 @@ limitations under the License.
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_InviteReason_toggle {
|
.mx_InviteReason_view {
|
||||||
display: none;
|
display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
|
@ -48,7 +48,7 @@ limitations under the License.
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_InviteReason_toggle {
|
.mx_InviteReason_view {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ export default class InviteReason extends React.PureComponent<IProps, IState> {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
onToggleClick = () => {
|
onViewClick = () => {
|
||||||
this.setState({
|
this.setState({
|
||||||
hidden: false,
|
hidden: false,
|
||||||
});
|
});
|
||||||
|
@ -52,8 +52,8 @@ export default class InviteReason extends React.PureComponent<IProps, IState> {
|
||||||
|
|
||||||
return <div className={classes}>
|
return <div className={classes}>
|
||||||
<div className="mx_InviteReason_reason">{this.props.reason}</div>
|
<div className="mx_InviteReason_reason">{this.props.reason}</div>
|
||||||
<div className="mx_InviteReason_toggle"
|
<div className="mx_InviteReason_view"
|
||||||
onClick={this.onToggleClick}
|
onClick={this.onViewClick}
|
||||||
>
|
>
|
||||||
{_t("View message")}
|
{_t("View message")}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue