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:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user