update privacy policy with #privacy hash trigger
This commit is contained in:
parent
f6b7f1705e
commit
82506f9ad4
|
@ -1,3 +1,5 @@
|
||||||
|
"use client";
|
||||||
|
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
Dialog,
|
Dialog,
|
||||||
|
@ -10,10 +12,15 @@ import {
|
||||||
import { ScrollArea } from "@/components/ui/scroll-area"
|
import { ScrollArea } from "@/components/ui/scroll-area"
|
||||||
|
|
||||||
export function PrivacyPolicyModal() {
|
export function PrivacyPolicyModal() {
|
||||||
|
React.useEffect(() => {
|
||||||
|
if (window.location.hash === '#privacy') {
|
||||||
|
document.getElementById('privacy-trigger').click();
|
||||||
|
}
|
||||||
|
}, []);
|
||||||
return (
|
return (
|
||||||
<Dialog>
|
<Dialog>
|
||||||
<DialogTrigger asChild>
|
<DialogTrigger asChild>
|
||||||
<button className="text-sm underline underline-offset-4">Privacy Policy</button>
|
<button id="privacy-trigger" className="text-sm underline underline-offset-4">Privacy Policy</button>
|
||||||
</DialogTrigger>
|
</DialogTrigger>
|
||||||
<DialogContent className="sm:max-w-[625px] bg-black text-white border border-gray-800">
|
<DialogContent className="sm:max-w-[625px] bg-black text-white border border-gray-800">
|
||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
|
|
Loading…
Reference in a new issue