diff --git a/web/src/app/maps/page.tsx b/web/src/app/maps/page.tsx index 266f0e0..8cd1eaf 100644 --- a/web/src/app/maps/page.tsx +++ b/web/src/app/maps/page.tsx @@ -1,5 +1,4 @@ import {useState, useEffect} from "react"; -import {useNavigate} from "react-router-dom"; import Webpage from "@/app/_components/webpage"; import { Box, @@ -37,7 +36,6 @@ interface Map { interface MapCardProps { map: Map; - onClick: (mapId: number) => void; formatDate: (timestamp: number) => string; getGameName: (gameId: number) => string; getGameLabelStyles: (gameId: number) => { @@ -46,7 +44,7 @@ interface MapCardProps { }; } -function MapCard({ map, onClick, formatDate, getGameName, getGameLabelStyles }: MapCardProps) { +function MapCard({ map, formatDate, getGameName, getGameLabelStyles }: MapCardProps) { const { thumbnailUrl, isLoading } = useAssetThumbnail(map.ID, '420x420'); return ( @@ -63,7 +61,7 @@ function MapCard({ map, onClick, formatDate, getGameName, getGameLabelStyles }: } }} > - onClick(map.ID)}> + ([]); const [loading, setLoading] = useState(true); const [searchQuery, setSearchQuery] = useState(""); @@ -200,10 +197,6 @@ export default function MapsPage() { window.scrollTo({top: 0, behavior: 'smooth'}); }; - const handleMapClick = (mapId: number) => { - navigate(`/maps/${mapId}`); - }; - const formatDate = (timestamp: number) => { return new Date(timestamp * 1000).toLocaleDateString('en-US', { year: 'numeric', @@ -340,7 +333,6 @@ export default function MapsPage() {