Skip to content

Commit

Permalink
Added header to test page
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-M-Lucas committed Apr 22, 2024
1 parent 23634e9 commit 0ffd92e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/test firestore/TestFirestore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
import {faker, fakerEN_GB} from "@faker-js/faker";
import {getCurrentBalance} from "../../utils/transaction_utils.ts";
import {signInWithGoogle} from "../../utils/authentication.ts";
import {Header} from "../../components/Header.tsx";

function writeSampleData() {
if (auth.currentUser === null) {
Expand Down Expand Up @@ -55,6 +56,7 @@ export function TestFirestorePage() {

if (auth.currentUser === null) {
return <>
<Header/>
<FullscreenCenter>
<div className="text-center">
<h1>Not Logged In</h1>
Expand All @@ -71,8 +73,9 @@ export function TestFirestorePage() {

return (
<>
<Header/>
<div className="text-center">
<h1>Logged In - {auth.currentUser.uid}</h1>
<h1>Logged In - {auth.currentUser.uid} - {auth.currentUser.displayName}</h1>
<button type="button" className="login-with-google-btn" onClick={signInWithGoogle}>
Sign in with Google
</button>
Expand Down

0 comments on commit 0ffd92e

Please sign in to comment.