The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix consent toast first hover (#28660)
Francesco Sansalvadored05b4bcf0f35
diff --git a/apps/studio/pages/_app.tsx b/apps/studio/pages/_app.tsxindex 51c6847bdf1..96b37e0bf96 100644--- a/apps/studio/pages/_app.tsx+++ b/apps/studio/pages/_app.tsx@@ -134,14 +134,16 @@ function CustomApp({ Component, pageProps }: AppPropsWithLayout) {const hasAcknowledgedConsent = localStorage.getItem(LOCAL_STORAGE_KEYS.TELEMETRY_CONSENT)if (IS_PLATFORM && hasAcknowledgedConsent === null) {- consentToastId.current = toast(- <ConsentToast onAccept={onAcceptConsent} onOptOut={onOptOut} />,- {- id: 'consent-toast',- position: 'bottom-right',- duration: Infinity,- }- )+ setTimeout(() => {+ consentToastId.current = toast(+ <ConsentToast onAccept={onAcceptConsent} onOptOut={onOptOut} />,+ {+ id: 'consent-toast',+ position: 'bottom-right',+ duration: Infinity,+ }+ )+ }, 300)}}// eslint-disable-next-line react-hooks/exhaustive-depsdiff --git a/packages/ui-patterns/ConsentToast/index.tsx b/packages/ui-patterns/ConsentToast/index.tsxindex 3a46bf60797..40eb313b48d 100644--- a/packages/ui-patterns/ConsentToast/index.tsx+++ b/packages/ui-patterns/ConsentToast/index.tsx@@ -95,19 +95,21 @@ export const useConsent = () => {useEffect(() => {if (isClient && consentValue === null) {- consentToastId.current = toast(- <ConsentToast- onAccept={() => handleConsent('true')}- onOptOut={() => handleConsent('false')}- />,- {- id: 'consent-toast',- position: 'bottom-right',- duration: Infinity,- className:- '!w-screen !-m-4 !border-t !rounded-none !max-w-none !bg-overlay !text sm:!m-0 sm:!rounded-lg sm:!w-auto sm:!max-w-[400px] sm:border',- }- )+ setTimeout(() => {+ consentToastId.current = toast(+ <ConsentToast+ onAccept={() => handleConsent('true')}+ onOptOut={() => handleConsent('false')}+ />,+ {+ id: 'consent-toast',+ position: 'bottom-right',+ duration: Infinity,+ className:+ '!w-screen !-m-4 !border-t !rounded-none !max-w-none !bg-overlay !text sm:!m-0 sm:!rounded-lg sm:!w-auto sm:!max-w-[400px] sm:border',+ }+ )+ }, 300)}}, [consentValue])