From 08d291b9133582d1fa4b8f5ee78295b67b13710d Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Fri, 14 Jun 2024 15:20:07 +0200 Subject: [PATCH] oauth button test --- frontend/app/components/Login/GoogleLogin.tsx | 57 +++++++++++++++++++ frontend/app/components/Login/Login.tsx | 4 +- .../Signup/SignupForm/SignupForm.tsx | 4 ++ 3 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 frontend/app/components/Login/GoogleLogin.tsx diff --git a/frontend/app/components/Login/GoogleLogin.tsx b/frontend/app/components/Login/GoogleLogin.tsx new file mode 100644 index 000000000..5d9f55e4f --- /dev/null +++ b/frontend/app/components/Login/GoogleLogin.tsx @@ -0,0 +1,57 @@ +import React from 'react'; + +function GoogleLogin({ isLogin }: { isLogin?: boolean }) { + return ( +
+ +
+ + + + + + + + + + + + + {isLogin ? 'Login' : 'Sign up'} with Google +
+
+
+ ); +} + +export default GoogleLogin; diff --git a/frontend/app/components/Login/Login.tsx b/frontend/app/components/Login/Login.tsx index bd8052b32..c917cb30c 100644 --- a/frontend/app/components/Login/Login.tsx +++ b/frontend/app/components/Login/Login.tsx @@ -20,7 +20,7 @@ import { import { Button, Form, Icon, Input, Link, Loader, Tooltip } from 'UI'; import Copyright from 'Shared/Copyright'; - +import GoogleLogin from "./GoogleLogin"; import stl from './login.module.css'; const FORGOT_PASSWORD = forgotPassword(); @@ -177,6 +177,8 @@ const Login: React.FC = ({ /> )}
+ +
Or continue with
= ({ tenants, errors, loading, signu /> )}
+ +
Or continue with
+ {tenants.length > 0 && (