From 36a49a1ccfb919e2cb09a4e3dd7b79f98afa8345 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 16 Jul 2024 09:53:00 +1200 Subject: [PATCH 1/2] feat: added a skeleton login page with button to call loginwithpopup function --- frontend/src/containers/pages/LoginPage.jsx | 27 ++++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/frontend/src/containers/pages/LoginPage.jsx b/frontend/src/containers/pages/LoginPage.jsx index 582297af..2b921b95 100644 --- a/frontend/src/containers/pages/LoginPage.jsx +++ b/frontend/src/containers/pages/LoginPage.jsx @@ -31,11 +31,26 @@ export default function LoginPage() { } }, [user]); - useEffect(() => { - if (!loading && !user) { - signInUsingGoogle(); - } - }, [loading]); + // useEffect(() => { + // if (!loading && !user) { + // signInUsingGoogle(); + // } + // }, [loading]); - return ; + return ( +
+ +
+ ); } From 2f8ce2abce41443e1e2d1b4bb51163951c9cd898 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 16 Jul 2024 10:01:22 +1200 Subject: [PATCH 2/2] chore: updated login page unit test to match current skeleton login --- .../__snapshots__/LoginPage.test.js.snap | 44 +++---------------- 1 file changed, 5 insertions(+), 39 deletions(-) diff --git a/frontend/src/containers/pages/__tests__/__snapshots__/LoginPage.test.js.snap b/frontend/src/containers/pages/__tests__/__snapshots__/LoginPage.test.js.snap index 42763771..4626dd32 100644 --- a/frontend/src/containers/pages/__tests__/__snapshots__/LoginPage.test.js.snap +++ b/frontend/src/containers/pages/__tests__/__snapshots__/LoginPage.test.js.snap @@ -3,46 +3,12 @@ exports[`Login page snapshot test 1`] = `
-
-
+
+ WIP Login +