Add a line on UI to make search results obvious

This commit is contained in:
Tanner Collin 2020-08-14 03:58:11 +00:00
parent 6576eb1bac
commit c554ecd890

View File

@ -60,7 +60,9 @@ class Results extends React.Component {
</Helmet> </Helmet>
{error && <p>Connection error?</p>} {error && <p>Connection error?</p>}
{stories ? {stories ?
<div> <>
<p>Search results:</p>
<div className='comment lined'>
{stories.length ? {stories.length ?
stories.map((x, i) => stories.map((x, i) =>
<div className='item' key={i}> <div className='item' key={i}>
@ -78,9 +80,10 @@ class Results extends React.Component {
</div> </div>
) )
: :
<p>no results</p> <p>none</p>
} }
</div> </div>
</>
: :
<p>loading...</p> <p>loading...</p>
} }