mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-22 06:51:21 +02:00
I have made changes according to turt2live recommandations, mainly css indentation and variable definition
This commit is contained in:
parent
153703426a
commit
06ba55e1a1
@ -37,7 +37,7 @@ export default class InviteOnlyIcon extends React.Component {
|
||||
};
|
||||
|
||||
render() {
|
||||
const style = this.props.collapsedPanel ? "mx_InviteOnlyIcon_small": "mx_InviteOnlyIcon_large";
|
||||
const classes = this.props.collapsedPanel ? "mx_InviteOnlyIcon_small": "mx_InviteOnlyIcon_large";
|
||||
|
||||
if (!SettingsStore.isFeatureEnabled("feature_invite_only_padlocks")) {
|
||||
return null;
|
||||
@ -48,7 +48,7 @@ export default class InviteOnlyIcon extends React.Component {
|
||||
if (this.state.hover) {
|
||||
tooltip = <Tooltip className="mx_InviteOnlyIcon_tooltip" label={_t("Invite only")} dir="auto" />;
|
||||
}
|
||||
return (<div className={style}
|
||||
return (<div className={classes}
|
||||
onMouseEnter={this.onHoverStart}
|
||||
onMouseLeave={this.onHoverEnd}
|
||||
>
|
||||
|
Loading…
x
Reference in New Issue
Block a user