The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: Stripe card form on light-mode
Kevin Grüneberge9da898344e8
diff --git a/studio/components/interfaces/Billing/AddNewPaymentMethodModal/AddNewPaymentMethodModal.tsx b/studio/components/interfaces/Billing/AddNewPaymentMethodModal/AddNewPaymentMethodModal.tsxindex 64b00d18b5e..d8f6c0335f0 100644--- a/studio/components/interfaces/Billing/AddNewPaymentMethodModal/AddNewPaymentMethodModal.tsx+++ b/studio/components/interfaces/Billing/AddNewPaymentMethodModal/AddNewPaymentMethodModal.tsx@@ -9,6 +9,7 @@ import { useIsHCaptchaLoaded } from 'stores/hcaptcha-loaded-store'import { post } from 'lib/common/fetch'import { API_URL, STRIPE_PUBLIC_KEY } from 'lib/constants'import AddPaymentMethodForm from './AddPaymentMethodForm'+import { useTheme } from 'common'interface Props {visible: boolean@@ -78,9 +79,11 @@ const AddNewPaymentMethodModal: FC<Props> = ({ visible, returnUrl, onCancel, onC}}+ const { isDarkMode } = useTheme()+const options = {clientSecret: intent ? intent.client_secret : '',- appearance: { theme: 'night', labels: 'floating' },+ appearance: { theme: isDarkMode ? 'night' : 'flat', labels: 'floating' },} as anyconst onLocalCancel = () => {diff --git a/studio/components/interfaces/BillingV2/Subscription/Tier/AddNewPaymentMethodModal.tsx b/studio/components/interfaces/BillingV2/Subscription/Tier/AddNewPaymentMethodModal.tsxindex 15b5b74d20c..b00322e8279 100644--- a/studio/components/interfaces/BillingV2/Subscription/Tier/AddNewPaymentMethodModal.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/Tier/AddNewPaymentMethodModal.tsx@@ -9,6 +9,7 @@ import { useCallback, useEffect, useState } from 'react'import { useIsHCaptchaLoaded } from 'stores/hcaptcha-loaded-store'import { Modal } from 'ui'import AddNewPaymentMethodForm from './AddNewPaymentMethodForm'+import { useTheme } from 'common'// [Joshen] Directly brought over from old Billing folder, so we can deprecate that folder easily next time@@ -84,9 +85,11 @@ const AddNewPaymentMethodModal = ({}}+ const { isDarkMode } = useTheme()+const options = {clientSecret: intent ? intent.client_secret : '',- appearance: { theme: 'night', labels: 'floating' },+ appearance: { theme: isDarkMode ? 'night' : 'flat', labels: 'floating' },} as anyconst onLocalCancel = () => {diff --git a/studio/components/interfaces/Organization/NewProject/EmptyPaymentMethodWarning.tsx b/studio/components/interfaces/Organization/NewProject/EmptyPaymentMethodWarning.tsxindex e11f0317b4f..7a94402fe18 100644--- a/studio/components/interfaces/Organization/NewProject/EmptyPaymentMethodWarning.tsx+++ b/studio/components/interfaces/Organization/NewProject/EmptyPaymentMethodWarning.tsx@@ -23,7 +23,7 @@ const EmptyPaymentMethodWarning = observer(return (<div className="mt-4"><InformationBox- icon={<IconAlertCircle className="text-white" size="large" strokeWidth={1.5} />}+ icon={<IconAlertCircle size="large" strokeWidth={1.5} />}defaultVisibility={true}hideCollapsetitle="Your organization has no payment methods"