Closed CharityBunyon closed 4 years ago
WHEN the page load there should be a navbar with a link to login. AND when the user clicks the login link they will be transported the looks page
[x] Make firebase for Create Beauty and grab apiKeys
[x] Put /src/helpers/apiKeys.json in gitIgnore!!!
/src/helpers/apiKeys.json
[x] In App.js:
import firebase and firebase/auth
import firebase connection
call firebase connection function above class component
[x] In Class Component:
in state add auth:false
add ComponentDidMount, which will have a listener that will set the state of Auth if the user is logged in or not.
Add ComponentWillunmount, which will call the remove listener function
[x] Put apiKys.example.json in helpers
[x] Add apiKeys.json to helpers folder
[x] Add connection.js in src/helpers/data folder
export firebaseApp function, which will go to App.js
Story
AC
WHEN the page load there should be a navbar with a link to login. AND when the user clicks the login link they will be transported the looks page
Dev Notes
[x] Make firebase for Create Beauty and grab apiKeys
[x] Put
/src/helpers/apiKeys.json
in gitIgnore!!![x] In App.js:
import firebase and firebase/auth
import firebase connection
call firebase connection function above class component
[x] In Class Component:
in state add auth:false
add ComponentDidMount, which will have a listener that will set the state of Auth if the user is logged in or not.
Add ComponentWillunmount, which will call the remove listener function
[x] Put apiKys.example.json in helpers
[x] Add apiKeys.json to helpers folder
[x] Add connection.js in src/helpers/data folder
export firebaseApp function, which will go to App.js