mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 20:42:43 +00:00
Merge branch 'userpage-to-func-comp' of https://github.com/5e-Cleric/homebrewery into userpage-to-func-comp
This commit is contained in:
@@ -33,7 +33,7 @@ const UserPage = ({ username = '', brews = [], query = '', error = null, ...prop
|
||||
}] : [])
|
||||
];
|
||||
|
||||
const navItems = ()=>(
|
||||
const navItems = (
|
||||
<Navbar>
|
||||
<Nav.section>
|
||||
{currentError && (<ErrorNavItem error={currentError} parent={null}></ErrorNavItem>)}
|
||||
@@ -47,7 +47,7 @@ const UserPage = ({ username = '', brews = [], query = '', error = null, ...prop
|
||||
);
|
||||
|
||||
return (
|
||||
<ListPage brewCollection={brewCollection} navItems={navItems()} query={query} reportError={(error)=>setCurrentError(error)} />
|
||||
<ListPage brewCollection={brewCollection} navItems={navItems} query={query} reportError={(error)=>setCurrentError(error)} />
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user