summaryrefslogtreecommitdiff
path: root/src/components/navigation/Navbar.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/navigation/Navbar.js')
-rw-r--r--src/components/navigation/Navbar.js19
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>