The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(studio): use Badge for auth provider enabled state (#51310)
Danny Whitea4910196b822
diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsxindex 369b0558353..e3740d6e7e6 100644--- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx+++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx@@ -1,7 +1,6 @@import { zodResolver } from '@hookform/resolvers/zod'import { PermissionAction } from '@supabase/shared-types/out/constants'import { useParams } from 'common'-import { Check } from 'lucide-react'import { useTheme } from 'next-themes'import { useQueryState } from 'nuqs'import { useCallback, useEffect, useId, useMemo, useState } from 'react'@@ -9,6 +8,7 @@ import { useForm } from 'react-hook-form'import ReactMarkdown from 'react-markdown'import { toast } from 'sonner'import {+ Badge,Button,Form,Sheet,@@ -188,18 +188,9 @@ export const ProviderForm = ({ config, provider, isActive }: ProviderFormProps)/>}meta={- isActive ? (- <div className="flex items-center gap-1 rounded-full border border-brand-400 bg-brand-200 py-1 px-1 text-xs text-primary">- <span className="rounded-full bg-brand-default p-0.5 text-xs text-brand-200">- <Check strokeWidth={2} size={12} />- </span>- <span className="px-1">Enabled</span>- </div>- ) : (- <div className="rounded-md border border-strong bg-surface-100 py-1 px-3 text-xs text-foreground-lighter">- Disabled- </div>- )+ <Badge variant={isActive ? 'success' : 'default'}>+ {isActive ? 'Enabled' : 'Disabled'}+ </Badge>}>{provider.title}