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 && (