The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: github auth loading state (#29322)
Alaister Young4506ebaa8cd8
diff --git a/apps/studio/pages/integrations/github/authorize.tsx b/apps/studio/pages/integrations/github/authorize.tsxindex b8622936a10..0aca1c891de 100644--- a/apps/studio/pages/integrations/github/authorize.tsx+++ b/apps/studio/pages/integrations/github/authorize.tsx@@ -6,7 +6,7 @@ import { useGitHubAuthorizationCreateMutation } from 'data/integrations/github-aconst GitHubIntegrationAuthorize = () => {const { code, state } = useParams()- const { mutate, isSuccess, isError } = useGitHubAuthorizationCreateMutation({+ const { mutate, isSuccess, isError, isLoading } = useGitHubAuthorizationCreateMutation({onSuccess() {window.close()},@@ -22,11 +22,9 @@ const GitHubIntegrationAuthorize = () => {<div className="h-screen flex flex-col justify-center items-center gap-4"><h2 className="text-xl">Completing GitHub Authorization...</h2>- {isSuccess ? (- <p>You can now close this window.</p>- ) : (- <p>Unable to authorize. Please try again.</p>- )}+ {isSuccess && <p>You can now close this window.</p>}+ {isLoading && <p>Authorizing...</p>}+ {isError && <p>Unable to authorize. Please try again.</p>}</div>)}