From 82506f9ad41a778dc796837d4a529abbd14041e8 Mon Sep 17 00:00:00 2001 From: rocord01 Date: Sat, 25 Jan 2025 17:21:36 -0500 Subject: [PATCH] update privacy policy with #privacy hash trigger --- src/components/privacy-policy-modal.jsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/privacy-policy-modal.jsx b/src/components/privacy-policy-modal.jsx index b62fa93..5ed681d 100644 --- a/src/components/privacy-policy-modal.jsx +++ b/src/components/privacy-policy-modal.jsx @@ -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 ( - +