nss-evening-cohort-11 / nutshell-ewoks-droids

Star Destroyer
0 stars 2 forks source link

Create Logout Button #13

Closed Nikababy01 closed 4 years ago

Nikababy01 commented 4 years ago

USER STORY

As a user, when I am logged in via Google, I should be able to logout.

AC

WHEN the page loads I should see all boards THEN click a button to login AND when done I should be able to click a button to logout

WIREFRAMES

DEV NOTES


1. Create a bootstrap button on the index.html in the navbar div  with id ="navbar-logout-button"
2. Create a navbar.js component 
3. import firebase from 'firebase/app';
    import 'firebase/auth';
4. create a jquery logout event function:
 const logoutEvent = () => {
 $('#navbar-logout-button').click((e)=> {
      e.preventDefault();
       firebase.auth().signOut();
     });
 };
export default { logoutEvent};

RELATED TICKETS

EX. #2