diff --git a/src/extensions/nexus_integration/views/LoginIcon.tsx b/src/extensions/nexus_integration/views/LoginIcon.tsx index 84a32381c..f3f6a1419 100644 --- a/src/extensions/nexus_integration/views/LoginIcon.tsx +++ b/src/extensions/nexus_integration/views/LoginIcon.tsx @@ -87,7 +87,7 @@ class LoginIcon extends ComponentEx { return 'Free'; } - private renderMembershipStatus() { + private renderMembershipStatus = () => { const { t, userInfo } = this.props; const membership = this.getMembershipText(userInfo); @@ -95,16 +95,16 @@ class LoginIcon extends ComponentEx { if (this.isLoggedIn()) { return ( -
-
{membership}
-
+
+
{membership}
+
); } else { return null; } } - private renderLoginName() { + private renderLoginName = () => { const { t, userInfo } = this.props; if (this.isLoggedIn()) { @@ -123,7 +123,7 @@ class LoginIcon extends ComponentEx { } } - private renderAvatar() { + private renderAvatar = () => { const { t, userInfo } = this.props; const loggedIn = this.isLoggedIn(); @@ -176,7 +176,7 @@ class LoginIcon extends ComponentEx { }); } - private isLoggedIn() { + private isLoggedIn = () => { const { isLoggedIn, userInfo } = this.props; //return isLoggedIn; return isLoggedIn && (userInfo !== undefined) && (userInfo !== null); @@ -186,7 +186,7 @@ class LoginIcon extends ComponentEx { this.setDialogVisible(false); } - private setDialogVisible(visible: boolean): void { + private setDialogVisible = (visible: boolean): void => { this.props.onShowDialog(); } }