name blurbs, skeleton and link

This commit is contained in:
yohlo
2025-10-16 15:39:46 -05:00
parent 4b66a4bd13
commit 15ed78a9c5
5 changed files with 142 additions and 25 deletions

View File

@@ -1,4 +1,5 @@
import BadgeStatsTable from '@/features/badges/components/badge-stats-table';
import BadgeStatsTableSkeleton from '@/features/badges/components/badge-stats-table-skeleton';
import { badgeQueries, useAllBadges } from '@/features/badges/queries';
import PlayerStatsTableSkeleton from '@/features/players/components/player-stats-table-skeleton';
import { prefetchServerQuery } from '@/lib/tanstack-query/utils/prefetch';
@@ -16,15 +17,15 @@ export const Route = createFileRoute('/_authed/badges')({
fullWidth: true,
header: {
title: 'All Badges',
withBackButton: true,
},
refresh: [badgeQueries.allBadges().queryKey],
}),
});
function Badges() {
//TODO: CHANGE FALLBACK
return (
<Suspense fallback={<PlayerStatsTableSkeleton />}>
<Suspense fallback={<BadgeStatsTableSkeleton />}>
<div>
<BadgeStatsTable />
</div>