0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-09 20:12:41 +00:00

Merge branch 'master' into MakeHomePageFunctionalComponent

This commit is contained in:
Trevor Buckner
2025-08-30 19:47:10 -04:00
9 changed files with 174 additions and 187 deletions

View File

@@ -77,11 +77,18 @@ const HomePage =(props)=>{
}));
};
const renderNavbar = ()=>{
const clearError = ()=>{
setState({
error : null,
isSaving : false
})
};
renderNavbar : function(){
return <Navbar ver={this.props.ver}>
<Nav.section>
{this.state.error ?
<ErrorNavItem error={error} parent={this}></ErrorNavItem> :
<ErrorNavItem error={this.state.error} clearError={clearError}></ErrorNavItem> :
null
}
<NewBrewItem />