fix: remove redundant helper and guide code from Header
This commit is contained in:
committed by
mrugesh
parent
8ae0044682
commit
67d49efd1e
@@ -9,12 +9,11 @@ import { Link } from '../helpers';
|
||||
import './header.css';
|
||||
|
||||
const propTypes = {
|
||||
disableSettings: PropTypes.bool,
|
||||
navigationMenu: PropTypes.element
|
||||
disableSettings: PropTypes.bool
|
||||
};
|
||||
|
||||
function Header(props) {
|
||||
const { disableSettings, navigationMenu } = props;
|
||||
const { disableSettings } = props;
|
||||
return (
|
||||
<header>
|
||||
<nav id='top-nav'>
|
||||
@@ -22,11 +21,7 @@ function Header(props) {
|
||||
<NavLogo />
|
||||
</Link>
|
||||
{disableSettings ? null : <SearchBar />}
|
||||
{navigationMenu ? (
|
||||
navigationMenu
|
||||
) : (
|
||||
<NavigationMenu disableSettings={disableSettings} />
|
||||
)}
|
||||
<NavigationMenu disableSettings={disableSettings} />
|
||||
</nav>
|
||||
</header>
|
||||
);
|
||||
|
Reference in New Issue
Block a user