@@ -4,6 +4,7 @@ import { FcGoogle } from 'react-icons/fc'
44import { IoMdClose } from 'react-icons/io'
55import ReactModal from 'react-modal'
66import toast from 'react-simple-toasts'
7+ import { Button } from 'src/components/Elements'
78import { useAuth } from 'src/features/auth'
89import { trackUserConnect } from 'src/lib/analytics'
910import { firebaseAuth , githubAuthProvider , googleAuthProvider } from 'src/lib/firebase'
@@ -59,32 +60,35 @@ export const AuthModal = ({ showAuth }: AuthModalProps) => {
5960 } ,
6061 } }
6162 overlayClassName = "Overlay" >
62- < div className = "titleAndCloseBtn" >
63- < h3 >
64- < FaHeart /> Join the community
65- </ h3 >
66- < button className = "extraBtn" onClick = { closeAuthModal } >
67- < IoMdClose />
68- </ button >
69- </ div >
70- < div className = "buttons" >
71- < button
72- className = "extraTextWithIconBtn"
73- onClick = { ( ) => signIn ( githubAuthProvider , 'Github' ) } >
74- < FaGithub />
75- Connect with Github
76- </ button >
77- < button
78- className = "extraTextWithIconBtn"
79- onClick = { ( ) => signIn ( googleAuthProvider , 'Google' ) } >
80- < FcGoogle />
81- Connect with Google
82- </ button >
63+ < div className = "authModal" >
64+ < div className = "titleAndCloseBtn" >
65+ < h3 >
66+ < FaHeart /> Join the community
67+ </ h3 >
68+ < button className = "extraBtn" onClick = { closeAuthModal } >
69+ < IoMdClose />
70+ </ button >
71+ </ div >
72+ < div className = "buttons" >
73+ < Button
74+ startIcon = { < FaGithub /> }
75+ onClick = { ( ) => signIn ( githubAuthProvider , 'Github' ) }
76+ size = "large" >
77+ Connect with Github
78+ </ Button >
79+
80+ < Button
81+ startIcon = { < FcGoogle /> }
82+ onClick = { ( ) => signIn ( googleAuthProvider , 'Google' ) }
83+ size = "large" >
84+ Connect with Google
85+ </ Button >
86+ </ div >
87+ < p className = "description" >
88+ We use your account to save your settings and track streaks for rowards 🎁 ... or risk
89+ losing them like unusaved code!
90+ </ p >
8391 </ div >
84- < p className = "description" >
85- We use your account to save your settings and track streaks for rowards 🎁 ... or risk
86- losing them like unusaved code!
87- </ p >
8892 </ ReactModal >
8993 )
9094}
0 commit comments