Make Featured Content and Search use new TruncatedText component

This commit is contained in:
Alex Liebowitz 2016-08-04 04:09:03 -04:00
parent be31598ed9
commit 53843361b6

View file

@ -201,8 +201,7 @@ var FeaturedContentItem = React.createClass({
   
<DownloadLink streamName={this.props.name} />
</div>
<p style={featuredContentItemDescriptionStyle}>{metadata.description.slice(0, this._maxDescriptionLength) +
(metadata.description.length > this._maxDescriptionLength ? ' ...' : '')}</p>
<p style={featuredContentItemDescriptionStyle}><TruncatedText>{metadata.description}</TruncatedText></p>
</div>
</div>);
}