This commit is contained in:
David 2018-08-13 21:20:12 +04:30
parent 237040cadf
commit 5c6c14fcc5
No known key found for this signature in database
GPG key ID: D19FF700A6D04B1C
2 changed files with 6 additions and 2 deletions

View file

@ -85,7 +85,11 @@ class App extends React.Component {
return ( return (
<Router> <Router>
<span id="apppage"> <span id="apppage">
{!currentPath.includes("marketing") ? <HomeNav /> : <MarketingNav />} {!currentPath.includes("marketing") ? (
<HomeNav toggle2={this.toggle2} />
) : (
<MarketingNav />
)}
{collapsed && overlay} {collapsed && overlay}
<Routes /> <Routes />

View file

@ -101,7 +101,7 @@ class HomeNav extends React.Component {
</Link> </Link>
</NavItem> </NavItem>
<NavItem> <NavItem>
<NavLink to="#!" onClick={this.toggle2}> <NavLink to="#!" onClick={this.props.toggle2}>
<span id="nav_lang4">Downloads</span> <span id="nav_lang4">Downloads</span>
</NavLink> </NavLink>
</NavItem> </NavItem>