|
|
|
@ -15,10 +15,10 @@ export const sourceLink = (story) => { |
|
|
|
|
|
|
|
|
|
export const infoLine = (story) => ( |
|
|
|
|
<div className="info"> |
|
|
|
|
{story.score} points by <a href={story.author_link}>{story.author}</a> |
|
|
|
|
{story.score} points by {story.author_link ? <a href={story.author_link}>{story.author}</a> : story.author_link} |
|
|
|
|
​ {moment.unix(story.date).fromNow()} |
|
|
|
|
​ on {story.link ? <a href={story.link}>{story.source}</a> : story.source} |
|
|
|
|
| ​ <Link |
|
|
|
|
​ on <a href={story.link}>{story.source}</a> | ​ |
|
|
|
|
<Link |
|
|
|
|
className={story.num_comments > 99 ? "hot" : ""} |
|
|
|
|
to={"/" + story.id + "/c"}> |
|
|
|
|
{story.num_comments} comment{story.num_comments !== 1 && "s"} |
|
|
|
|