skeletons, tournament stats, polish, bug fixes
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import TeamProfile from "@/features/teams/components/team-profile";
|
||||
import ProfileSkeleton from "@/features/teams/components/team-profile/skeleton";
|
||||
import { teamKeys, teamQueries } from "@/features/teams/queries";
|
||||
import { prefetchServerQuery } from "@/lib/tanstack-query/utils/prefetch";
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
import { Suspense } from "react";
|
||||
import { z } from "zod";
|
||||
|
||||
const searchSchema = z.object({
|
||||
@@ -24,6 +26,8 @@ export const Route = createFileRoute("/_authed/teams/$teamId")({
|
||||
}),
|
||||
component: () => {
|
||||
const { teamId } = Route.useParams();
|
||||
return <TeamProfile id={teamId} />;
|
||||
return <Suspense fallback={<ProfileSkeleton />}>
|
||||
<TeamProfile id={teamId} />
|
||||
</Suspense>;
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user