Skip to content

Commit

Permalink
Make search nav option Logo a link to root
Browse files Browse the repository at this point in the history
  • Loading branch information
epbarger committed Jan 28, 2021
1 parent 645e80a commit 2382f91
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/search-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@ import React from 'react';
import { Navbar } from 'react-bootstrap';
import { SearchNavigationLinks } from '.';
import SearchBar from './search/';
import { Logo } from './';
import { Link, Logo } from './';

const LogoLink = () => (
<Link to="/">
<Logo width="200" height="50" className="mr-3" />
</Link>
);

const SearchNavigation = ({ children, logo = false }) => {
return (
<Navbar variant="light" className="flex-md-nowrap p-3 border-bottom">
{logo && <Logo width="200" height="50" className="mr-3" />}
{logo && <LogoLink />}
<SearchBar />
<SearchNavigationLinks />
</Navbar>
Expand Down

0 comments on commit 2382f91

Please sign in to comment.