mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: remove do not sell
This commit is contained in:
1 parent
0df58d2d2c
commit
8c0ddd473c
3 files changed
-71
No files matched your search
@@ -114,9 +114,6 @@ const gameDefinitions = await fetchGameDefinitions();
|
|||||||
>
|
>
|
||||||
Ad settings
|
Ad settings
|
||||||
</Link>
|
</Link>
|
||||||
<Link href="/legal/ccpa" color="gray">
|
|
||||||
Do not sell my personal information
|
|
||||||
</Link>
|
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|||||||
@@ -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 (
|
|
||||||
<App.Provider>
|
|
||||||
<Content />
|
|
||||||
</App.Provider>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
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 (
|
|
||||||
<RadioGroup.Root
|
|
||||||
value={`${doNotSell}`}
|
|
||||||
onValueChange={(value) => setDoNotSell(value === 'true')}
|
|
||||||
>
|
|
||||||
<RadioGroup.Item value="false">
|
|
||||||
My personal information may be used for the purposes defined in the
|
|
||||||
privacy policy.
|
|
||||||
</RadioGroup.Item>
|
|
||||||
<RadioGroup.Item value="true">
|
|
||||||
Do not sell my personal information.
|
|
||||||
</RadioGroup.Item>
|
|
||||||
</RadioGroup.Root>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -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';
|
|
||||||
---
|
|
||||||
|
|
||||||
<title>California Consumer Privacy Act (CCPA)</title>
|
|
||||||
|
|
||||||
<BaseLayout>
|
|
||||||
<PageWrapper justify="center">
|
|
||||||
<Flex direction="column">
|
|
||||||
<Heading mb="2">California Consumer Privacy Act (CCPA)</Heading>
|
|
||||||
<Text>
|
|
||||||
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 <Link
|
|
||||||
href="/docs/legal/privacy-policy">privacy policy</Link
|
|
||||||
> for complete information on how your data is used and stored.
|
|
||||||
</Text>
|
|
||||||
</Flex>
|
|
||||||
|
|
||||||
<Options client:load />
|
|
||||||
</PageWrapper>
|
|
||||||
</BaseLayout>
|
|
||||||
Reference in new issue
Block a user