MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / handleAccept

Function handleAccept

frontend/src/components/commonUI/AnalyticsConsent.tsx:37–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 }
36
37 const handleAccept = () => {
38 localStorage.setItem(CONSENT_KEY, 'true')
39 setShowConsent(false)
40 initializeAnalytics()
41 }
42
43 const handleDecline = () => {
44 localStorage.setItem(CONSENT_KEY, 'false')

Callers

nothing calls this directly

Calls 1

initializeAnalyticsFunction · 0.85

Tested by

no test coverage detected