From 18807dac42badce57db4a13be5ace2ba2093e8aa Mon Sep 17 00:00:00 2001 From: nickago Date: Fri, 4 Sep 2015 08:36:50 -0700 Subject: Added refactoring to pass style check --- web/react/components/user_settings_general.jsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/web/react/components/user_settings_general.jsx b/web/react/components/user_settings_general.jsx index f43889f7a..f2127ce0c 100644 --- a/web/react/components/user_settings_general.jsx +++ b/web/react/components/user_settings_general.jsx @@ -273,15 +273,16 @@ export default class UserSettingsGeneralTab extends React.Component { this.props.updateTab('notifications'); } - let notifLink = ( + const notifLink = ( + onClick={notifClick.bind(this)} + > Notifications ); - let extraInfo = ( + const extraInfo = ( By default, you will receive mention notifications when someone types your first name. Go to {notifLink} settings to change this default. @@ -348,7 +349,7 @@ export default class UserSettingsGeneralTab extends React.Component { ); - let extraInfo = ( + const extraInfo = ( Use Nickname for a name you might be called that is different from your first name and user name. This is most often used when two or more people have similar sounding names and usernames. @@ -405,7 +406,7 @@ export default class UserSettingsGeneralTab extends React.Component { ); - let extraInfo = (Pick something easy for teammates to recognize and recall.); + const extraInfo = (Pick something easy for teammates to recognize and recall.); usernameSection = (