From bfb6cc5f2c792852cdbc74bc9634289a4298c1b8 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 28 Oct 2016 20:26:49 +0200 Subject: Make suggestions box also use user list components --- .../components/features/followers/components/account.jsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'app/assets/javascripts/components/features/followers') 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
; @@ -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 =
{account.get('note')}
; } -- cgit