0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-18 12:12:43 +00:00

title and no brews UI

This commit is contained in:
Víctor Losada Hernández
2024-01-28 11:18:37 +01:00
parent 5fbbd92ea7
commit cccebd8494
2 changed files with 25 additions and 6 deletions

View File

@@ -64,7 +64,12 @@ const ArchivePage = createClass({
console.log('brews: ',brews);
if (!brews || brews.length === 0) {
return <div>No brews found.</div>;
return(
<div className="foundBrews noBrews">
<h2>We haven't found brews meeting your request.</h2>
</div>
);
}
this.updateUrl();
return <div className="foundBrews">
@@ -118,6 +123,9 @@ const ArchivePage = createClass({
renderNavItems: function () {
return (
<Navbar>
<Nav.section>
<Nav.item className='brewTitle'>Archive: Search for brews</Nav.item>
</Nav.section>
<Nav.section>
<NewBrew />
<HelpNavItem />