Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (29 sloc) 1.34 KB
import React from 'react';
import classNames from 'classnames';
import string from '../utils/string';
import time from '../utils/time';
export default class Cloud extends React.Component {
render() {
return (
<div className="cloud-search-holder">
<input className="cloud-search weak" placeholder="Tyler search" onChange={} />
<div className={classNames('search-results absolute', { hide: !this.props.searchResults.length })}>
{ => (
<div key={result._id} className="search-result point" onClick={this.props.followPost.bind(this, result)}>
<span className="jumbo-date inline">
<br />
<span className="search-small">
<div className="search-info inline">
{string.truncate(result.question, 20)}
You can’t perform that action at this time.