mirror of
https://github.com/supabase/supabase.git
synced 2026-10-14 21:59:16 +03:00
chore: remove privacy banner (#36312)
This commit is contained in:
1 parent
bfa60848b4
commit
c558bd4a07
3 files changed
-45
No files matched your search
@@ -6,47 +6,6 @@ import { toast } from 'sonner'
|
||||
import { useConsentState } from 'common'
|
||||
import Panel from 'components/ui/Panel'
|
||||
import { useSendResetMutation } from 'data/telemetry/send-reset-mutation'
|
||||
import { useLocalStorageQuery } from 'hooks/misc/useLocalStorage'
|
||||
import { LOCAL_STORAGE_KEYS } from 'common/constants/local-storage'
|
||||
|
||||
export const PrivacyUpdateBanner = () => {
|
||||
const [privacyUpdateAcknowledged, setPrivacyUpdateAcknowledged] = useLocalStorageQuery(
|
||||
LOCAL_STORAGE_KEYS.PRIVACY_NOTICE_ACKNOWLEDGED,
|
||||
false
|
||||
)
|
||||
|
||||
if (privacyUpdateAcknowledged) return null
|
||||
|
||||
return (
|
||||
<Alert_Shadcn_ className="mb-4 relative">
|
||||
<AlertTitle_Shadcn_>
|
||||
<Badge variant="default" className="mr-2">
|
||||
NOTICE
|
||||
</Badge>
|
||||
Privacy Policy Update – Effective May 28, 2025
|
||||
</AlertTitle_Shadcn_>
|
||||
<AlertDescription_Shadcn_>
|
||||
We’ve updated our{' '}
|
||||
<a href="https://supabase.com/privacy" target="_blank" className="text hover:text-brand">
|
||||
Privacy Policy
|
||||
</a>{' '}
|
||||
to clarify how we use AI features, marketing tools, cookies, and your data. By continuing to
|
||||
use Supabase after May 28, you agree to the new terms. Questions? Contact{' '}
|
||||
<a href="mailto:privacy@supabase.com" target="_blank" className="text hover:text-brand">
|
||||
our team
|
||||
</a>
|
||||
.
|
||||
</AlertDescription_Shadcn_>
|
||||
<ButtonTooltip
|
||||
type="text"
|
||||
icon={<X />}
|
||||
className="absolute top-2 right-2 px-1"
|
||||
onClick={() => setPrivacyUpdateAcknowledged(true)}
|
||||
tooltip={{ content: { side: 'bottom', text: 'Dismiss' } }}
|
||||
/>
|
||||
</Alert_Shadcn_>
|
||||
)
|
||||
}
|
||||
|
||||
export const AnalyticsSettings = () => {
|
||||
const { hasAccepted, acceptAll, denyAll, categories } = useConsentState()
|
||||
|
||||
@@ -8,7 +8,6 @@ import { ScaffoldContainerLegacy } from 'components/layouts/Scaffold'
|
||||
import { useAutoProjectsPrefetch } from 'data/projects/projects-query'
|
||||
import { PROJECT_STATUS } from 'lib/constants'
|
||||
import type { NextPageWithLayout } from 'types'
|
||||
import { PrivacyUpdateBanner } from 'components/interfaces/Account/Preferences/AnalyticsSettings'
|
||||
|
||||
const ProjectsPage: NextPageWithLayout = () => {
|
||||
const [search, setSearch] = useState('')
|
||||
@@ -22,7 +21,6 @@ const ProjectsPage: NextPageWithLayout = () => {
|
||||
return (
|
||||
<ScaffoldContainerLegacy>
|
||||
<div>
|
||||
<PrivacyUpdateBanner />
|
||||
<HomePageActions
|
||||
search={search}
|
||||
setSearch={setSearch}
|
||||
|
||||
@@ -16,7 +16,6 @@ import { withAuth } from 'hooks/misc/withAuth'
|
||||
import { NextPageWithLayout } from 'types'
|
||||
import { Button, Skeleton } from 'ui'
|
||||
import { Input } from 'ui-patterns/DataInputs/Input'
|
||||
import { PrivacyUpdateBanner } from 'components/interfaces/Account/Preferences/AnalyticsSettings'
|
||||
|
||||
const OrganizationsPage: NextPageWithLayout = () => {
|
||||
const router = useRouter()
|
||||
@@ -42,7 +41,6 @@ const OrganizationsPage: NextPageWithLayout = () => {
|
||||
|
||||
return (
|
||||
<ScaffoldContainerLegacy>
|
||||
<PrivacyUpdateBanner />
|
||||
<ScaffoldTitle>Your Organizations</ScaffoldTitle>
|
||||
|
||||
<div className="flex items-center gap-x-2 md:gap-x-3">
|
||||
|
||||
Reference in new issue
Block a user