From 57b0af54dfccdfa99c7421570738a58940f0c8da Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Sun, 25 Sep 2022 23:29:45 +1300 Subject: [PATCH] Renamed functions, eliminate unnecessary variable --- client/homebrew/pages/accountPage/accountPage.jsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/client/homebrew/pages/accountPage/accountPage.jsx b/client/homebrew/pages/accountPage/accountPage.jsx index 5a19ce195..2154956e9 100644 --- a/client/homebrew/pages/accountPage/accountPage.jsx +++ b/client/homebrew/pages/accountPage/accountPage.jsx @@ -27,7 +27,7 @@ const AccountPage = createClass({ }; }, - navItems : function() { + renderNavItems : function() { return @@ -38,9 +38,9 @@ const AccountPage = createClass({ ; }, - uiItems : function() { + renderUiItems : function() { // console.log(JSON.stringify(this.props.uiItems)); - const result = <> + return <>

Account Information

Username: {this.props.uiItems.username || 'No user currently logged in'}

Last Login: {this.props.uiItems.issued || '-'}

@@ -52,12 +52,10 @@ const AccountPage = createClass({

Linked to Google: {this.props.uiItems.googleId ? 'YES' : 'NO'}

{this.props.uiItems.googleId ?

Brews on Google Drive: {this.props.uiItems.fileCount || '-'}

: '' } ; - - return result; }, render : function(){ - return ; + return ; } });