diff --git a/src/components/SQLCourse/PlatformDemo.tsx b/src/components/SQLCourse/PlatformDemo.tsx index 955923f5c..9fd14fba5 100644 --- a/src/components/SQLCourse/PlatformDemo.tsx +++ b/src/components/SQLCourse/PlatformDemo.tsx @@ -1,40 +1,34 @@ import { SectionHeader } from './SectionHeader'; -import { useEffect, useState } from 'react'; +import { useState } from 'react'; +import { Play } from 'lucide-react'; +import { VideoModal } from '../VideoModal'; export function PlatformDemo() { - const [isZoomed, setIsZoomed] = useState(false); - - useEffect(() => { - function onScroll() { - if (isZoomed) { - setIsZoomed(false); - } - } - - window.addEventListener('scroll', onScroll); - return () => window.removeEventListener('scroll', onScroll); - }, [isZoomed]); + const [isVideoModalOpen, setIsVideoModalOpen] = useState(false); return ( <> - {isZoomed && ( -