diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index 494112c..703de67 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -1,7 +1,7 @@ import { useState, useEffect } from "react"; import { useQuery } from "@tanstack/react-query"; import { type Video } from "@shared/schema"; -import NetflixGrid from "@/components/netflix-grid"; +import VideoCard from "@/components/video-card"; import { Link } from "wouter"; import { Input } from "@/components/ui/input"; import { Search, Menu, X } from "lucide-react"; @@ -60,31 +60,33 @@ export default function Home() { } }, [searchQuery, refetch]); + const handleVideoClick = (video: Video) => { + window.location.href = `/video/${video.id}`; + }; + return ( -