summaryrefslogtreecommitdiffstats
path: root/web/react/components/user_settings_general.jsx
diff options
context:
space:
mode:
authornickago <ngonella@calpoly.edu>2015-09-03 12:53:16 -0700
committernickago <ngonella@calpoly.edu>2015-09-04 08:28:15 -0700
commit228ee859ffacc73835c92ea51432beca856bb21e (patch)
tree4c4dc9ce92b2ebabefb242f717c816159696411c /web/react/components/user_settings_general.jsx
parentf18657202866a748513f338c426f754b01f7db40 (diff)
downloadchat-228ee859ffacc73835c92ea51432beca856bb21e.tar.gz
chat-228ee859ffacc73835c92ea51432beca856bb21e.tar.bz2
chat-228ee859ffacc73835c92ea51432beca856bb21e.zip
Added help text to username, nickname, and fullname
Diffstat (limited to 'web/react/components/user_settings_general.jsx')
-rw-r--r--web/react/components/user_settings_general.jsx34
1 files changed, 34 insertions, 0 deletions
diff --git a/web/react/components/user_settings_general.jsx b/web/react/components/user_settings_general.jsx
index ead7ac1d5..f43889f7a 100644
--- a/web/react/components/user_settings_general.jsx
+++ b/web/react/components/user_settings_general.jsx
@@ -267,6 +267,27 @@ export default class UserSettingsGeneralTab extends React.Component {
</div>
);
+ function notifClick(e) {
+ e.preventDefault();
+ this.updateSection('');
+ this.props.updateTab('notifications');
+ }
+
+ let notifLink = (
+ <a
+ href='#'
+ onClick={notifClick.bind(this)} >
+ Notifications
+ </a>
+ );
+
+ let extraInfo = (
+ <span>
+ By default, you will receive mention notifications when someone types your first name.
+ Go to {notifLink} settings to change this default.
+ </span>
+ );
+
nameSection = (
<SettingItemMax
title='Full Name'
@@ -278,6 +299,7 @@ export default class UserSettingsGeneralTab extends React.Component {
this.updateSection('');
e.preventDefault();
}.bind(this)}
+ extraInfo={extraInfo}
/>
);
} else {
@@ -326,6 +348,13 @@ export default class UserSettingsGeneralTab extends React.Component {
</div>
);
+ let extraInfo = (
+ <span>
+ 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.
+ </span>
+ );
+
nicknameSection = (
<SettingItemMax
title='Nickname'
@@ -337,6 +366,7 @@ export default class UserSettingsGeneralTab extends React.Component {
this.updateSection('');
e.preventDefault();
}.bind(this)}
+ extraInfo={extraInfo}
/>
);
} else {
@@ -375,6 +405,8 @@ export default class UserSettingsGeneralTab extends React.Component {
</div>
);
+ let extraInfo = (<span>Pick something easy for teammates to recognize and recall.</span>);
+
usernameSection = (
<SettingItemMax
title='Username'
@@ -386,6 +418,7 @@ export default class UserSettingsGeneralTab extends React.Component {
this.updateSection('');
e.preventDefault();
}.bind(this)}
+ extraInfo={extraInfo}
/>
);
} else {
@@ -524,5 +557,6 @@ export default class UserSettingsGeneralTab extends React.Component {
UserSettingsGeneralTab.propTypes = {
user: React.PropTypes.object,
updateSection: React.PropTypes.func,
+ updateTab: React.PropTypes.func,
activeSection: React.PropTypes.string
};