diff --git a/surfsense_web/components/homepage/hero-section.tsx b/surfsense_web/components/homepage/hero-section.tsx index 1bb28e770..60f293005 100644 --- a/surfsense_web/components/homepage/hero-section.tsx +++ b/surfsense_web/components/homepage/hero-section.tsx @@ -180,32 +180,8 @@ function GetStartedButton() { const BrowserWindow = () => { const [selectedIndex, setSelectedIndex] = useState(0); const selectedItem = TAB_ITEMS[selectedIndex]; - const intervalRef = useRef(null); const { expanded, open, close } = useExpandedMedia(); - const startInterval = useCallback(() => { - if (intervalRef.current) { - clearInterval(intervalRef.current); - } - intervalRef.current = setInterval(() => { - setSelectedIndex((prev) => (prev + 1) % TAB_ITEMS.length); - }, 10000); - }, []); - - useEffect(() => { - startInterval(); - return () => { - if (intervalRef.current) { - clearInterval(intervalRef.current); - } - }; - }, [startInterval]); - - const handleTabClick = (index: number) => { - setSelectedIndex(index); - startInterval(); - }; - return ( <> @@ -220,7 +196,7 @@ const BrowserWindow = () => {