fix: competition page

This commit is contained in:
moolcoov
2025-03-01 13:39:47 +03:00
parent 65f73fb4a0
commit 4202ad5776
12 changed files with 72 additions and 125 deletions
@@ -0,0 +1,19 @@
import { Competition } from "@/shared/types";
import { CompetitionCard } from "../../components/CompetitionCard";
import { Link } from "react-router";
interface CompetitionGridProps {
competitions: Competition[];
}
export function CompetitionGrid({ competitions }: CompetitionGridProps) {
return (
<div className="grid grid-cols-3 gap-9">
{competitions.map((competition) => (
<Link key={competition.id} to={`/competitions/${competition.id}`}>
<CompetitionCard competition={competition} />
</Link>
))}
</div>
);
}