badges
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import { Box } from "@mantine/core";
|
||||
import { Suspense } from "react";
|
||||
import Header from "./header";
|
||||
import SwipeableTabs from "@/components/swipeable-tabs";
|
||||
import { usePlayer, usePlayerMatches, usePlayerStats } from "../../queries";
|
||||
import TeamList from "@/features/teams/components/team-list";
|
||||
import StatsOverview from "@/components/stats-overview";
|
||||
import MatchList from "@/features/matches/components/match-list";
|
||||
import BadgeShowcase from "@/features/badges/components/badge-showcase";
|
||||
import BadgeShowcaseSkeleton from "@/features/badges/components/badge-showcase-skeleton";
|
||||
|
||||
interface ProfileProps {
|
||||
id: string;
|
||||
@@ -18,7 +21,14 @@ const Profile = ({ id }: ProfileProps) => {
|
||||
const tabs = [
|
||||
{
|
||||
label: "Overview",
|
||||
content: <StatsOverview statsData={stats} isLoading={statsLoading} />,
|
||||
content: (
|
||||
<>
|
||||
<Suspense fallback={<BadgeShowcaseSkeleton />}>
|
||||
<BadgeShowcase playerId={id} />
|
||||
</Suspense>
|
||||
<StatsOverview statsData={stats} isLoading={statsLoading} />
|
||||
</>
|
||||
),
|
||||
},
|
||||
{
|
||||
label: "Matches",
|
||||
|
||||
Reference in New Issue
Block a user