diff --git a/client/index.html b/client/index.html index 5e7ef19..91e5d6f 100644 --- a/client/index.html +++ b/client/index.html @@ -35,32 +35,6 @@ - diff --git a/client/src/App.tsx b/client/src/App.tsx index 46933a1..ef79d79 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -22,7 +22,6 @@ import DatenschutzPage from "@/pages/datenschutz"; import KontaktPage from "@/pages/kontakt"; import AdminGalleryPage from "@/pages/admin-gallery"; import AdminPushPage from "@/pages/admin-push"; -import CookieConsent from "@/components/cookie-consent"; import MobileStickyAd from "@/components/mobile-sticky-ad"; // Vse povezave, ki vodijo z nase domene, se odprejo v novem zavihku. Delegiran diff --git a/client/src/components/cookie-consent.tsx b/client/src/components/cookie-consent.tsx deleted file mode 100644 index 4204b39..0000000 --- a/client/src/components/cookie-consent.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import { useState, useEffect } from "react"; -import { X } from "lucide-react"; - -const CONSENT_KEY = "folx_cookie_consent"; - -export default function CookieConsent() { - const [visible, setVisible] = useState(false); - - useEffect(() => { - const consent = localStorage.getItem(CONSENT_KEY); - if (!consent) { - const timer = setTimeout(() => setVisible(true), 1500); - return () => clearTimeout(timer); - } - }, []); - - const accept = () => { - localStorage.setItem(CONSENT_KEY, "accepted"); - setVisible(false); - }; - - if (!visible) return null; - - return ( -