From 8c0ddd473c6227cc3ad178539bf6d082e9b0305f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Fri, 18 Oct 2024 10:31:15 -0500 Subject: [PATCH] feat: remove do not sell --- packages/website/src/components/Footer.astro | 3 -- .../website/src/pages/legal/ccpa/_index.tsx | 43 ------------------- .../website/src/pages/legal/ccpa/index.astro | 25 ----------- 3 files changed, 71 deletions(-) delete mode 100644 packages/website/src/pages/legal/ccpa/_index.tsx delete mode 100644 packages/website/src/pages/legal/ccpa/index.astro diff --git a/packages/website/src/components/Footer.astro b/packages/website/src/components/Footer.astro index 948488497..56df86030 100644 --- a/packages/website/src/components/Footer.astro +++ b/packages/website/src/components/Footer.astro @@ -114,9 +114,6 @@ const gameDefinitions = await fetchGameDefinitions(); > Ad settings - - Do not sell my personal information - diff --git a/packages/website/src/pages/legal/ccpa/_index.tsx b/packages/website/src/pages/legal/ccpa/_index.tsx deleted file mode 100644 index 5a6f0fe77..000000000 --- a/packages/website/src/pages/legal/ccpa/_index.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import { RadioGroup } from '@radix-ui/themes'; -import Cookies from 'js-cookie'; -import { useEffect, useState } from 'react'; -import { App } from '../../../stores/app'; - -export function Options() { - return ( - - - - ); -} - -function Content() { - const [doNotSell, setDoNotSell] = useState(false); - - useEffect(() => { - setDoNotSell(Cookies.get('CCPAOPTOUT') !== undefined); - }, []); - - useEffect(() => { - if (doNotSell) { - Cookies.set('CCPAOPTOUT', 'true', { sameSite: 'Lax', expires: Infinity }); - } else { - Cookies.remove('CCPAOPTOUT'); - } - }, [doNotSell]); - - return ( - setDoNotSell(value === 'true')} - > - - My personal information may be used for the purposes defined in the - privacy policy. - - - Do not sell my personal information. - - - ); -} diff --git a/packages/website/src/pages/legal/ccpa/index.astro b/packages/website/src/pages/legal/ccpa/index.astro deleted file mode 100644 index d9660cb30..000000000 --- a/packages/website/src/pages/legal/ccpa/index.astro +++ /dev/null @@ -1,25 +0,0 @@ ---- -import { Flex, Heading, Link, Text } from '@radix-ui/themes'; -import { PageWrapper } from '../../../components/PageWrapper'; -import BaseLayout from '../../../layouts/BaseLayout.astro'; -import { Options } from './_index'; ---- - -California Consumer Privacy Act (CCPA) - - - - - California Consumer Privacy Act (CCPA) - - If you are a resident of California, you have the right under the CCPA - to opt out of the sale of personal information to third parties. Use the - options below to exercise this right, and please review our privacy policy for complete information on how your data is used and stored. - - - - - -