From efdb2c2665125b6ff09da5bf35b4396ef6f028f9 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 4 Apr 2019 21:09:08 +0300 Subject: Recommendations in feeds --- vnext/src/components/Thread.js | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'vnext/src/components/Thread.js') diff --git a/vnext/src/components/Thread.js b/vnext/src/components/Thread.js index f94ad358..6d8a5fd3 100644 --- a/vnext/src/components/Thread.js +++ b/vnext/src/components/Thread.js @@ -11,7 +11,6 @@ import MessageInput from './MessageInput'; import Spinner from './Spinner'; import Avatar from './Avatar'; import Button from './Button'; -import { UserLink } from './UserInfo'; import { format } from '../utils/embed'; @@ -85,7 +84,6 @@ export default class Thread extends React.Component { msg.mid ? ( {this.state.active === (msg.rid || 0) && Write a comment...} - ) : ( @@ -157,19 +155,3 @@ Thread.propTypes = { match: ReactRouterPropTypes.match, visitor: UserType.isRequired }; - -function Recommendations({ forMessage, ...rest }) { - const { likes, recommendations } = forMessage; - return recommendations && recommendations.length > 0 && ( -
{'Recommended by '} - { - recommendations.map(it => ( - - )).reduce((prev, curr) => [prev, ', ', curr]) - } - { - likes > recommendations.length && ( and {likes - recommendations.length} others) - } -
- ) || null; -} -- cgit v1.2.3