The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Show icon in authorize screen
Joshen Lim1eb1cc55a317
diff --git a/studio/data/api-authorization/api-authorization-query.ts b/studio/data/api-authorization/api-authorization-query.tsindex 652c19c4d5f..837738e0045 100644--- a/studio/data/api-authorization/api-authorization-query.ts+++ b/studio/data/api-authorization/api-authorization-query.ts@@ -11,6 +11,7 @@ export type ApiAuthorizationVariables = {export type ApiAuthorizationResponse = {name: stringwebsite: string+ icon: string | nulldomain: stringexpires_at: stringapproved_at: string | nulldiff --git a/studio/pages/authorize.tsx b/studio/pages/authorize.tsxindex 86559bebe6e..bb947890bd4 100644--- a/studio/pages/authorize.tsx+++ b/studio/pages/authorize.tsx@@ -176,10 +176,13 @@ const APIAuthorizationPage: NextPageWithLayout = () => {<div className="rounded-md border border-scale-600 p-2.5 flex items-center"><divclassName="w-8 h-8 md:w-10 md:h-10 bg-center bg-no-repeat bg-cover flex items-center justify-center"- // [Joshen] For when we support icons- // style={{ backgroundImage: `url('${requester?.icon}')` }}+ style={{+ backgroundImage: requester?.icon !== null ? `url('${requester?.icon}')` : 'none',+ }}>- <p className="text-scale-1000 text-lg">{requester?.name[0]}</p>+ {requester?.icon === null && (+ <p className="text-scale-1000 text-lg">{requester?.name[0]}</p>+ )}</div></div></div>