11import FacebookIcon from "@/components/icons/facebook" ;
2- import GithubIcon from "@/components/icons/github" ;
32import GoogleIcon from "@/components/icons/google" ;
43import { Button } from "@/components/ui/button" ;
4+ import GitHubIcon from "./icons/github" ;
55import LinkedInIcon from "./icons/linkedin" ;
66
77interface Provider {
88 name : string ;
9- icon : "FacebookIcon" | "GithubIcon " | "GoogleIcon" | "LinkedInIcon" ;
9+ icon : "FacebookIcon" | "GitHubIcon " | "GoogleIcon" | "LinkedInIcon" ;
1010 branded : boolean ;
1111}
1212
@@ -25,7 +25,7 @@ const getProviderClasses = (provider: Provider) => {
2525 "bg-red-500 hover:bg-red-600 hover:text-white text-white dark:bg-red-600 dark:hover:bg-red-700" ,
2626 Facebook :
2727 "bg-blue-600 hover:bg-blue-700 hover:text-white text-white dark:bg-blue-700 dark:hover:bg-blue-800" ,
28- Github :
28+ GitHub :
2929 "bg-gray-900 hover:bg-gray-700 hover:text-white text-white dark:border-white dark:bg-transparent dark:hover:bg-gray-900" ,
3030 LinkedIn :
3131 "bg-blue-700 hover:bg-blue-800 hover:text-white text-white dark:bg-blue-800 dark:hover:bg-blue-900" ,
@@ -37,25 +37,25 @@ const getProviderClasses = (provider: Provider) => {
3737const iconMap = {
3838 GoogleIcon : GoogleIcon ,
3939 FacebookIcon : FacebookIcon ,
40- GithubIcon : GithubIcon ,
40+ GitHubIcon : GitHubIcon ,
4141 LinkedInIcon : LinkedInIcon ,
4242} ;
4343
4444export default function SocialitePlus ( { providersConfig } : SocialitePlusProps ) {
4545 return (
4646 < >
47- < div className = "flex gap-4 items-center" >
47+ < div className = "flex items-center gap-4 " >
4848 < div className = "flex-1" >
49- < div className = "w-full h-px bg-border " />
49+ < div className = "bg-border h-px w-full " />
5050 </ div >
5151 or
5252 < div className = "flex-1" >
53- < div className = "w-full h-px bg-border " />
53+ < div className = "bg-border h-px w-full " />
5454 </ div >
5555 </ div >
5656
5757 < div className = "flex flex-col gap-4" >
58- { providersConfig . providers . map ( ( provider ) => {
58+ { Object . values ( providersConfig . providers ) . map ( ( provider ) => {
5959 const IconComponent = iconMap [ provider . icon ] ;
6060 return (
6161 < Button
0 commit comments