-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
170b60a
commit 0587127
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,12 @@ class Header extends React.Component { | |
} | ||
|
||
navLinkClick = (event) => { | ||
this.setState({ | ||
collapsed:true | ||
}); | ||
} | ||
|
||
navLinkLogoClick = (event) => { | ||
const numberOfClicks = this.state.numberOfClicks + 1; | ||
this.setState({ | ||
numberOfClicks, | ||
|
@@ -52,7 +58,7 @@ class Header extends React.Component { | |
|
||
return ( | ||
<nav className="sbc-navbar navbar fixed-top navbar-expand-xl navbar-light"> | ||
<Link to="/" className="navbar-brand" onClick={this.navLinkClick}> | ||
<Link to="/" className="navbar-brand" onClick={this.navLinkLogoClick}> | ||
<img className="sbc-navbar-logo" src="/img/logo_menu.png" srcSet="/img/[email protected] 2x" alt="Saintfield Baptist Church"/> | ||
</Link> | ||
<button className="navbar-toggler" type="button" onClick={this.navBarToggleClick}> | ||
|