Files
supabase/apps/docs/components/AuthProviders.tsx
pqoqubbw e3a6f37d7f docs: fix grid style for AuthProviders component for mobile (horizontal scroll) (#23461)
docs: fix grid styles for AuthProviders component for mobile
2024-05-01 11:32:40 -04:00

25 lines
731 B
TypeScript

import { IconPanel } from 'ui-patterns/IconPanel'
import providers from '../data/authProviders'
import Link from 'next/link'
export default function AuthProviders({ type }: { type: string }) {
const filterProviders = providers.filter((item) => item.authType === type)
return (
<>
<div className="grid grid-cols-12 xs:gap-x-10 gap-y-10 not-prose py-8">
{filterProviders.map((x) => (
<Link
href={`${x.href}`}
key={x.name}
passHref
className="col-span-12 xs:col-span-6 lg:col-span-4 xl:col-span-3"
>
<IconPanel title={x.name} icon={x.logo} hasLightIcon={x.hasLightIcon} />
</Link>
))}
</div>
</>
)
}