diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-22 13:57:07 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:06:07 +0200 |
| commit | 2b98c0d580dd2fe5d103ea1ab16e69db56734cde (patch) | |
| tree | 9a9fd8fcdf9d4fddaf85823a43b5fe651ba1af8b /src/components/navigation | |
| parent | adba75ab51401ae99039376b4b64449c9a77e18d (diff) | |
Make OpenDC link point to top of page
Diffstat (limited to 'src/components/navigation')
| -rw-r--r-- | src/components/navigation/Navbar.js | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/components/navigation/Navbar.js b/src/components/navigation/Navbar.js index 6dfc20b0..4981bb53 100644 --- a/src/components/navigation/Navbar.js +++ b/src/components/navigation/Navbar.js @@ -48,12 +48,23 @@ const LoggedInSectionWithoutRoute = ({location}) => ( const Navbar = ({fullWidth, children}) => ( <nav className="navbar fixed-top navbar-expand-lg navbar-light bg-faded" id="navbar"> <div className={fullWidth ? "container-fluid" : "container"}> - <button className="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" - data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" - aria-expanded="false" aria-label="Toggle navigation"> + <button + className="navbar-toggler navbar-toggler-right" + type="button" + data-toggle="collapse" + data-target="#navbarSupportedContent" + aria-controls="navbarSupportedContent" + aria-expanded="false" + aria-label="Toggle navigation" + > <span className="navbar-toggler-icon"/> </button> - <Link className="navbar-brand opendc-brand" to="/" title="OpenDC"> + <Link + className="navbar-brand opendc-brand" + to="/" + title="OpenDC" + onClick={() => window.scrollTo(0, 0)} + > <img src="/img/logo.png" alt="OpenDC"/> </Link> |
