Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: update consent banner (#30183)

Pamela Chiaac3c069b3c8e
diff --git a/packages/ui-patterns/ConsentToast/index.tsx b/packages/ui-patterns/ConsentToast/index.tsx
index 8a45ede2242..f20ed262bfe 100644
--- a/packages/ui-patterns/ConsentToast/index.tsx
+++ b/packages/ui-patterns/ConsentToast/index.tsx
@@ -8,10 +8,10 @@ import {
useTelemetryProps,
} from 'common'
import { noop } from 'lodash'
-import Link from 'next/link'
import { useCallback, useEffect, useRef, useState } from 'react'
import { toast } from 'sonner'
import { Button, cn } from 'ui'
+import { PrivacySettings } from '../PrivacySettings'
interface ConsentToastProps {
onAccept: () => void
@@ -25,15 +25,18 @@ export const ConsentToast = ({ onAccept = noop, onOptOut = noop }: ConsentToastP
<div className="py-1 flex flex-col gap-y-3 w-full">
<div>
<p className="text-sm text-foreground">
- We use first-party cookies to improve our services.
- <Link
- className="inline sm:hidden underline text-light"
+ We use first-party cookies to improve our services.{' '}
+ <a
target="_blank"
- rel="noreferrer"
- href="https://supabase.com/privacy"
+ rel="noreferrer noopener"
+ href="https://supabase.com/privacy#8-cookies-and-similar-technologies-used-on-our-european-services"
+ className="underline underline-offset-2 decoration-foreground-lighter hover:decoration-foreground-light transition-all"
>
Learn more
- </Link>
+ </a>{' '}
+ <PrivacySettings className="inline sm:hidden underline text-light">
+ Privacy settings
+ </PrivacySettings>
</p>
</div>
<div className="flex items-center space-x-2">
@@ -54,9 +57,7 @@ export const ConsentToast = ({ onAccept = noop, onOptOut = noop }: ConsentToastP
Opt out
</Button>
<Button asChild type="text" className="hidden sm:block text-light hover:text-foreground">
- <Link target="_blank" rel="noreferrer" href="https://supabase.com/privacy">
- Learn more
- </Link>
+ <PrivacySettings>Privacy settings</PrivacySettings>
</Button>
</div>
</div>
diff --git a/packages/ui-patterns/PrivacySettings/index.tsx b/packages/ui-patterns/PrivacySettings/index.tsx
index d6b34a5ddd9..3419d3065e4 100644
--- a/packages/ui-patterns/PrivacySettings/index.tsx
+++ b/packages/ui-patterns/PrivacySettings/index.tsx
@@ -93,9 +93,14 @@ export const PrivacySettings = ({
<>
By opting in to sending telemetry data, Supabase can improve the overall user
experience.{' '}
- <Link href="https://supabase.com/privacy" className="underline">
+ <a
+ target="_blank"
+ rel="noreferrer noopener"
+ className="underline"
+ href="https://supabase.com/privacy#8-cookies-and-similar-technologies-used-on-our-european-services"
+ >
Learn more
- </Link>
+ </a>
</>
}
/>