diff --git a/src/pages/games/browser/GameGrid.tsx b/src/pages/games/browser/GameGrid.tsx index f3a5da9..bda2136 100644 --- a/src/pages/games/browser/GameGrid.tsx +++ b/src/pages/games/browser/GameGrid.tsx @@ -1,22 +1,22 @@ import classNames from "classnames"; import { Timestamp } from "../Timestamp.tsx"; -import type { Game } from "../services/supabase/supabase.types.ts"; +import { GameSearchEntry } from "../services/supabase/supabase.ts"; import { btnSecondary } from "../ui/theme.ts"; import { DownloadButton } from "./Controls.tsx"; import { ScoreboardLink } from "./Scoreboard.tsx"; import { useDemoScoreSpoiler } from "./hooks.ts"; -export const GameGrid = ({ games }: { games: Game[] | null }) => { +export const GameGrid = ({ games }: { games: GameSearchEntry[] }) => { return (
diff --git a/src/pages/games/browser/Scoreboard.tsx b/src/pages/games/browser/Scoreboard.tsx
index 627504b..80ddd88 100644
--- a/src/pages/games/browser/Scoreboard.tsx
+++ b/src/pages/games/browser/Scoreboard.tsx
@@ -1,7 +1,6 @@
import classNames from "classnames";
import { getMapshotCssUrl } from "../../../services/mapshots.ts";
import type {
- Game,
GamePlayer,
GameTeam,
} from "../services/supabase/supabase.types.ts";
@@ -10,9 +9,10 @@ import type {
// @ts-ignore
// @typescript-eslint/ban-ts-comment
import { Scoreboard as LegacyScoreboard } from "../../../servers/Scoreboard.jsx";
+import { GameSearchEntry } from "../services/supabase/supabase.ts";
type ScoreboardProps = {
- game: Game;
+ game: GameSearchEntry;
showScores?: boolean;
showMapName?: boolean;
};
@@ -70,7 +70,7 @@ export const Scoreboard = ({
};
type ScoreboardLinkProps = {
- game: Game;
+ game: GameSearchEntry;
showScores?: boolean;
};
diff --git a/src/pages/games/browser/context.tsx b/src/pages/games/browser/context.tsx
index f15df22..aeed87b 100644
--- a/src/pages/games/browser/context.tsx
+++ b/src/pages/games/browser/context.tsx
@@ -7,14 +7,14 @@ import {
} from "react";
import { useIsFirstRender } from "usehooks-ts";
import {
+ GameSearchEntry,
searchGamesCount,
searchGamesRows,
} from "../services/supabase/supabase.ts";
-import type { Game } from "../services/supabase/supabase.types.ts";
import { useGameSettings } from "./settings/context.tsx";
type GameContextProps = {
- games: Game[];
+ games: GameSearchEntry[];
hasGames: boolean;
count: number;
isLoading: boolean;
@@ -29,7 +29,7 @@ const GameContext = createContext |