significant refactor
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
import { List } from "@mantine/core";
|
||||
import { useSuspenseQuery } from "@tanstack/react-query";
|
||||
import { tournamentQueries } from "@/features/tournaments/queries";
|
||||
import { useTournaments } from "@/features/tournaments/queries";
|
||||
import ListLink from "@/components/list-link";
|
||||
|
||||
const ManageTournaments = () => {
|
||||
const { data: tournaments } = useSuspenseQuery(tournamentQueries.list());
|
||||
const { data: tournaments } = useTournaments();
|
||||
return (
|
||||
<List>
|
||||
{tournaments.map(t => (
|
||||
{tournaments.map((t) => (
|
||||
<ListLink label={t.name} to={`/admin/tournaments/${t.id}`} />
|
||||
))}
|
||||
</List>
|
||||
|
||||
Reference in New Issue
Block a user