grid split and searchbar

This commit is contained in:
Owen Rees
2023-05-24 00:07:34 +02:00
parent 8c67681825
commit 96eb4e37f1
7 changed files with 142 additions and 48 deletions
+6 -3
View File
@@ -1,6 +1,7 @@
import dynamic from "next/dynamic";
import Layout from "@/components/Layout";
import TournamentTable from "@/components/TournamentTable";
import { Tournament } from "@/types";
/**
* Imports the tournament map component, ensuring CSR only.
@@ -25,13 +26,15 @@ async function getTournaments() {
}
export default async function Tournaments() {
const tournamentData = await getTournaments();
const tournamentData: Tournament[] = await getTournaments();
console.log(tournamentData);
return (
<Layout>
<TournamentMapNoSSR />
<TournamentTable tournamentData={tournamentData} />
<main className="grid lg:grid-cols-2">
<TournamentMapNoSSR />
<TournamentTable tournamentData={tournamentData} />
</main>
</Layout>
);
}