diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 1bce2d6..4edc22f 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -15,6 +15,7 @@ Add yourself as a contributor to this project as a Markdown link that links your - [Caitlin Floyd](https://github.com/cafloyd) 🌸 - [Raynaldo Sutisna](https://github.com/raaynaldo) 🏂 +- [Luis Augusto](https://github.com/luisaugusto) 🚀 ## Code of Conduct Contacts diff --git a/src/api/config.js b/src/api/config.js index 47c4a10..d690a32 100644 --- a/src/api/config.js +++ b/src/api/config.js @@ -4,13 +4,12 @@ import { getAuth } from 'firebase/auth'; // Your web app's Firebase configuration const firebaseConfig = { - apiKey: 'FILL_ME_IN', - authDomain: 'FILL_ME_IN', - databaseURL: 'FILL_ME_IN', - projectId: 'FILL_ME_IN', - storageBucket: 'FILL_ME_IN', - messagingSenderId: 'FILL_ME_IN', - appId: 'FILL_ME_IN', + apiKey: 'AIzaSyA7YIVJNC5iXcCYlttYcpdbjYVXZNJelOc', + authDomain: 'tcl-68-smart-shopping-list.firebaseapp.com', + projectId: 'tcl-68-smart-shopping-list', + storageBucket: 'tcl-68-smart-shopping-list.appspot.com', + messagingSenderId: '883336693926', + appId: '1:883336693926:web:773604791570b6315f4c67', }; // Initialize Firebase diff --git a/src/views/Layout.jsx b/src/views/Layout.jsx index b559bbe..9918035 100644 --- a/src/views/Layout.jsx +++ b/src/views/Layout.jsx @@ -2,6 +2,7 @@ import { Outlet } from 'react-router-dom'; import './Layout.css'; import { auth } from '../api/config.js'; +import { useAuth, SignInButton, SignOutButton } from '../api/useAuth.jsx'; /** * TODO: The links defined in this file don't work! @@ -12,11 +13,13 @@ import { auth } from '../api/config.js'; */ export function Layout() { + const { user } = useAuth(); return ( <>

Smart shopping list

+ {user ? : }