diff --git a/src/pages/ChipOverview.tsx b/src/pages/ChipOverview.tsx index 480e8da..7433bdc 100644 --- a/src/pages/ChipOverview.tsx +++ b/src/pages/ChipOverview.tsx @@ -15,39 +15,9 @@ import { FaUsers, } from 'react-icons/fa'; import {HiSparkles} from 'react-icons/hi'; -import {useEffect, useState} from 'react'; -import logotext from "../assets/logotext.svg"; -import logotext_dark from "../assets/logotext_dark.svg"; export default function ChipOverview() { - const [isDarkTheme, setIsDarkTheme] = useState(false); - - useEffect(() => { - // Initialize theme state - const updateThemeState = () => { - const theme = document.documentElement.getAttribute('data-theme'); - setIsDarkTheme(theme === 'dark'); - }; - - // Set initial state - updateThemeState(); - - // Create observer to watch for theme changes - const observer = new MutationObserver(mutations => { - mutations.forEach(mutation => { - if (mutation.attributeName === 'data-theme') { - updateThemeState(); - } - }); - }); - - // Start observing - observer.observe(document.documentElement, {attributes: true}); - - // Cleanup - return () => observer.disconnect(); - }, []); - return (
Bahnbrechende Traumtechnologie