mirror of
https://github.com/harivansh-afk/Saas-Teamspace.git
synced 2026-04-21 11:04:42 +00:00
initial commit
This commit is contained in:
commit
ef9ccf22d3
133 changed files with 20802 additions and 0 deletions
29
components/auth/social.tsx
Normal file
29
components/auth/social.tsx
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
'use client'
|
||||
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { signIn } from 'next-auth/react'
|
||||
import { FaGithub, FaGoogle } from 'react-icons/fa'
|
||||
|
||||
export const Social = () => {
|
||||
const onClick = (provider: 'google' | 'github') => {
|
||||
signIn(provider, {
|
||||
callbackUrl: '/'
|
||||
})
|
||||
}
|
||||
return (
|
||||
<div className="flex gap-2 mt-3">
|
||||
<Button
|
||||
className="rounded-[5px] w-full border border-primary/20 bg-secondary text-primary hover:bg-primary/10 text-md"
|
||||
onClick={() => onClick('google')}
|
||||
>
|
||||
<FaGoogle className="mr-2" /> Google
|
||||
</Button>
|
||||
<Button
|
||||
className="rounded-[5px] w-full border border-primary/20 bg-secondary text-primary hover:bg-primary/10 text-md"
|
||||
onClick={() => onClick('github')}
|
||||
>
|
||||
<FaGithub className="mr-2" /> Github
|
||||
</Button>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue