diff --git a/package.json b/package.json index 330a6a0..8b0052f 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.2.0", "private": true, "dependencies": { + "@react-oauth/google": "^0.11.0", "@reduxjs/toolkit": "^1.8.2", "@tailwindcss/line-clamp": "^0.3.1", "@testing-library/jest-dom": "^5.11.4", diff --git a/src/components/AuthPages/Login/index.jsx b/src/components/AuthPages/Login/index.jsx index efd6b14..1cd1e92 100644 --- a/src/components/AuthPages/Login/index.jsx +++ b/src/components/AuthPages/Login/index.jsx @@ -7,6 +7,8 @@ import WrenchBoard from "../../../assets/images/wrenchboard.png"; import usersService from "../../../services/UsersService"; import InputCom from "../../Helpers/Inputs/InputCom"; import AuthLayout from "../AuthLayout"; +//import { GoogleOAuthProvider } from '@react-oauth/google'; +import { googleLogout, useGoogleLogin } from '@react-oauth/google'; import { useDispatch } from "react-redux"; import { updateUserDetails } from "../../../store/UserDetails"; @@ -171,9 +173,9 @@ export default function Login() { )} - - - + + + {/*

@@ -197,10 +199,30 @@ export default function Login() { } const BrandBtn = ({ link, imgSrc, brand }) => { + + const doGoogle = async ()=>{ + alert('start google'); + } + + // onSuccess: (codeResponse) => setUser(codeResponse), + + // const doGoogle = useGoogleLogin({ + // onSuccess: (codeResponse) => console.log('Login onSuccess:', codeResponse), + // onError: (error) => console.log('Login Failed:', error) + // }); + + const doApple = async ()=>{ + alert('start apple'); + } + + const doFacebook = async ()=>{ + alert('start facebook'); + } + return (