Skip to content

Commit

Permalink
Adding bible class
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwilson committed Sep 14, 2024
1 parent 40d5207 commit 434d26d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/components/header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,34 @@ class Header extends React.Component {
constructor(props) {
super(props);
this.state = {
collapsed:true
collapsed:true,
numberOfClicks: 0
}
this.auth = new Auth();
}

navBarToggleClick = (event) => {
this.setState({
...this.state,
collapsed:this.state.collapsed ? false : true
});
}

navLinkClick = (event) => {
const numberOfClicks = this.state.numberOfClicks + 1;
this.setState({
numberOfClicks,
collapsed:true
});

if(numberOfClicks >= 5) {
this.setState({
collapsed:true,
numberOfClicks:0
});

window.location.href = 'https://forms.gle/k7UjoYDYywCTLmSX6';
}
}

login = (event) => {
Expand Down

0 comments on commit 434d26d

Please sign in to comment.