0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-05 23:12:39 +00:00

Apply to Edit page

This commit is contained in:
Trevor Buckner
2021-10-14 00:03:22 -04:00
parent a695540f60
commit 872125515e
4 changed files with 20 additions and 76 deletions

View File

@@ -92,9 +92,9 @@ const Nav = {
},
render : function () {
const dropdownChildren = React.Children.map(this.props.children, (child, i) => {
const dropdownChildren = React.Children.map(this.props.children, (child, i)=>{
// Ignore the first child
if (i < 1) return;
if(i < 1) return;
return child;
});
return (
@@ -104,7 +104,7 @@ const Nav = {
{this.props.children[0]}
{this.renderDropdown(dropdownChildren)}
</div>
)
);
}
})