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 {
|
||||
Dialog,
|
||||
|
@ -10,10 +12,15 @@ import {
|
|||
import { ScrollArea } from "@/components/ui/scroll-area"
|
||||
|
||||
export function PrivacyPolicyModal() {
|
||||
React.useEffect(() => {
|
||||
if (window.location.hash === '#privacy') {
|
||||
document.getElementById('privacy-trigger').click();
|
||||
}
|
||||
}, []);
|
||||
return (
|
||||
<Dialog>
|
||||
<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>
|
||||
<DialogContent className="sm:max-w-[625px] bg-black text-white border border-gray-800">
|
||||
<DialogHeader>
|
||||
|
|
Loading…
Reference in a new issue