Add site logos, keep displaying news on error

This commit is contained in:
2019-09-24 08:23:14 +00:00
parent 0053147226
commit c7734eb2bc
9 changed files with 66 additions and 66 deletions

View File

@@ -11,6 +11,12 @@ export const sourceLink = (story) => {
return (<a className='source' href={url}>{host}</a>);
};
export const siteLogo = {
hackernews: <img className='source-logo' src='logos/hackernews.png' />,
tildes: <img className='source-logo' src='logos/tildes.png' />,
reddit: <img className='source-logo' src='logos/reddit.png' />,
};
export const infoLine = (story) =>
<div className='info'>
{story.score} points