mirror of
https://github.com/supabase/supabase.git
synced 2026-06-04 20:02:42 +08:00
* Change all imports in the ui package which import via the @ui shortcut. * Add a new ui-patterns package. Add it to all apps. * Migrate PrivacySettings from ui to ui-patterns. * Migrate ConsentToast from ui to ui-patterns. * Remove providers folder from ui package. * Move GlassPanel. * Migrate IconPanel. * Migrate TweetCard. * Migrate ThemeImage. * Remove LWXCountdownBanner. * Migrate CountdownWidget. * Migrate SchemaTableNode. * Migrate ExpandableVideo. * Migrate ThemeToggle. * Fix bunch of imports in the docs app. * Revert some unnecessary changes. * Expand the README.md. * Fix the tailwind configs, they were using old folder structure. * Fix leftover merge conflicts. * Remove a deleted page in master. --------- Co-authored-by: Terry Sutton <saltcod@gmail.com>
25 lines
702 B
TypeScript
25 lines
702 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 gap-10 not-prose py-8">
|
|
{filterProviders.map((x) => (
|
|
<Link
|
|
href={`${x.href}`}
|
|
key={x.name}
|
|
passHref
|
|
className="col-span-6 lg:col-span-4 xl:col-span-3"
|
|
>
|
|
<IconPanel title={x.name} icon={x.logo} hasLightIcon={x.hasLightIcon} />
|
|
</Link>
|
|
))}
|
|
</div>
|
|
</>
|
|
)
|
|
}
|