about summary refs log tree commit diff
path: root/app/assets/javascripts/components/features/followers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-28 20:26:49 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-28 20:26:49 +0200
commitbfb6cc5f2c792852cdbc74bc9634289a4298c1b8 (patch)
treeab918a0e1439e21b1d3e6e35da45b9fae226ac05 /app/assets/javascripts/components/features/followers
parentac4f53a3a2488c4af789df862d9e68d5327bebb1 (diff)
Make suggestions box also use user list components
Diffstat (limited to 'app/assets/javascripts/components/features/followers')
-rw-r--r--app/assets/javascripts/components/features/followers/components/account.jsx10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/assets/javascripts/components/features/followers/components/account.jsx b/app/assets/javascripts/components/features/followers/components/account.jsx
index 27f34c477..9d863a1ae 100644
--- a/app/assets/javascripts/components/features/followers/components/account.jsx
+++ b/app/assets/javascripts/components/features/followers/components/account.jsx
@@ -38,6 +38,12 @@ const Account = React.createClass({
     withNote: React.PropTypes.bool
   },
 
+  getDefaultProps () {
+    return {
+      withNote: true
+    };
+  },
+
   mixins: [PureRenderMixin],
 
   handleFollow () {
@@ -45,7 +51,7 @@ const Account = React.createClass({
   },
 
   render () {
-    const { account, me } = this.props;
+    const { account, me, withNote } = this.props;
 
     if (!account) {
       return <div />;
@@ -53,7 +59,7 @@ const Account = React.createClass({
 
     let note, buttons;
 
-    if (account.get('note').length > 0) {
+    if (account.get('note').length > 0 && withNote) {
       note = <div style={noteStyle}>{account.get('note')}</div>;
     }