mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-03 08:22:42 +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>
|
<Navbar>
|
||||||
<Nav.section>
|
<Nav.section>
|
||||||
{currentError && (<ErrorNavItem error={currentError} parent={null}></ErrorNavItem>)}
|
{currentError && (<ErrorNavItem error={currentError} parent={null}></ErrorNavItem>)}
|
||||||
@@ -47,7 +47,7 @@ const UserPage = ({ username = '', brews = [], query = '', error = null, ...prop
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
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