updated Logo to use Link

This commit is contained in:
bill bittner 2018-01-29 12:49:01 -08:00
parent 47b6c59ae8
commit caee8bb835
3 changed files with 6 additions and 5 deletions

View file

@ -1,9 +1,10 @@
import React from 'react'; import React from 'react';
import { Link } from 'react-router-dom';
function Logo () { function Logo () {
return ( return (
<svg version="1.1" id="Layer_1" x="0px" y="0px" height="24px" viewBox="0 0 80 31" enableBackground="new 0 0 80 31" className="nav-bar-logo"> <svg version="1.1" id="Layer_1" x="0px" y="0px" height="24px" viewBox="0 0 80 31" enableBackground="new 0 0 80 31" className="nav-bar-logo">
<a href="/"> <Link to="/">
<title>Logo</title> <title>Logo</title>
<desc>Spee.ch logo</desc> <desc>Spee.ch logo</desc>
<g id="About"> <g id="About">
@ -20,7 +21,7 @@ function Logo () {
</g> </g>
</g> </g>
</g> </g>
</a> </Link>
</svg> </svg>
); );
}; };

View file

@ -12,4 +12,4 @@ let store = createStore(
render( render(
<Root store={store} />, <Root store={store} />,
document.getElementById('react-app') document.getElementById('react-app')
) );

View file

@ -17,10 +17,10 @@ const Root = ({ store }) => (
</Switch> </Switch>
</BrowserRouter> </BrowserRouter>
</Provider> </Provider>
) );
Root.propTypes = { Root.propTypes = {
store: PropTypes.object.isRequired, store: PropTypes.object.isRequired,
} };
export default Root; export default Root;