diff --git a/src/pages/signin.tsx b/src/pages/signin.tsx index 9246899..8fe3833 100644 --- a/src/pages/signin.tsx +++ b/src/pages/signin.tsx @@ -9,7 +9,7 @@ import { useRouter } from "next/router"; import { UserContext, initialValue } from "providers/user/AppContext"; import { FormEvent, useContext, useEffect, useRef, useState } from "react"; import { FcGoogle } from "react-icons/fc"; -import { GrLinkedinOption } from "react-icons/gr"; +import { GrLinkedinOption, GrGithub } from "react-icons/gr"; import { toast } from "react-toastify"; import { SIGN_IN_USER } from "services/apollo/mutations"; import { GET_IS_USER_LOGGED } from "services/apollo/queries"; @@ -17,6 +17,21 @@ import { GET_IS_USER_LOGGED } from "services/apollo/queries"; import client from "services/apollo/apollo-client"; import TermsAndPrivacyPopup from "@components/TermsAndPrivacyPopup/TermsAndPrivacyPopup"; +const LOGIN_OPTIONS = [ + { + authPath: "/auth/github", + icon: GrGithub, + iconClassname: "text-[#000]", + innerText: "Entrar com Github", + }, + { + authPath: "/auth/linkedin", + icon: GrLinkedinOption, + iconClassname: "text-[#0e76a8]", + innerText: "Entrar com Linkedin", + }, +]; + const SignIn: NextPage = () => { const router = useRouter(); const refForm = useRef(null); @@ -175,14 +190,24 @@ const SignIn: NextPage = () => { {/* */} {/* Entrar com Google */} {/* */} - +
+ {LOGIN_OPTIONS.map((option, index) => { + return ( + + ); + })} +

Não tem uma conta?{" "}