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

Star Destroyer
0 stars 2 forks source link

Create UnAuthentication read-only view #15

Open Nikababy01 opened 4 years ago

Nikababy01 commented 4 years ago

USER STORY

As a user, when I am unauthenticated I should be able to see the dashboard (Read only).boards.

AC

WHEN the page loads I should see all boards THEN click a button to see all boards AND can click a login button to edit the boards

WIREFRAMES

DEV NOTES


This is an ADD-ON task from ticket item #14 
the function checkLoginStatus will need to be continously modified to allow read-only view:
  const  authDiv = $('#auth');
  const logoutButton = $('#navbar-logout-button');

  const checkLoginStatus =() => {
  firebase.auth().onAuthStateChanged((user) => {
       if (user) {
      // person is logged in
       authDiv.addClass('hide');
       logoutButton.removeClass('hide')
     } else {
        //person is Not logged in
       authDiv.removeClass('hide');
       logoutButton.addClass('hide');
     }
   });
  };

export default { checkLoginStatus } ;

RELATED TICKETS

EX. #2