swipeable tabs use url

This commit is contained in:
yohlo
2025-08-25 22:22:33 -05:00
parent 44417d063b
commit c9df4947bd
4 changed files with 62 additions and 3 deletions

View File

@@ -10,8 +10,14 @@ import TeamList from '@/features/teams/components/team-list';
import Button from '@/components/button';
import Avatar from '@/components/avatar';
import Profile from '@/features/tournaments/components/profile';
import { z } from "zod";
const searchSchema = z.object({
tab: z.string().optional(),
});
export const Route = createFileRoute('/_authed/tournaments/$tournamentId')({
validateSearch: searchSchema,
beforeLoad: async ({ context, params }) => {
const { queryClient } = context;
await queryClient.ensureQueryData(tournamentQueries.details(params.tournamentId))